1
0
Fork 0
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:
Maxime Moraine 2020-04-01 19:34:06 +02:00
parent d872002ee9
commit da1547ab88
40 changed files with 1448 additions and 89 deletions

View file

@ -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
},
},
},
],
}