mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 21:24:18 +00:00
spell + filtering + urlParams
This commit is contained in:
parent
d872002ee9
commit
da1547ab88
40 changed files with 1448 additions and 89 deletions
|
|
@ -9,6 +9,8 @@ module.exports = {
|
|||
{
|
||||
// Unique ID of current classification
|
||||
id: 'spell',
|
||||
// Meta title for spell list page
|
||||
title: 'Grimoire',
|
||||
// Target directory
|
||||
dirname: '_spells',
|
||||
// Path of the `entry page` (or `list page`)
|
||||
|
|
@ -16,6 +18,12 @@ module.exports = {
|
|||
layout: 'SpellsLayout',
|
||||
itemLayout: 'SpellLayout',
|
||||
itemPermalink: '/grimoire/:slug',
|
||||
pagination: {
|
||||
lengthPerPage: 1000,
|
||||
sorter: (prev, next) => {
|
||||
return prev.path - next.path
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue