mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-12-17 15:40:37 +00:00
optimisation mobile + filtres des monstres + seo
This commit is contained in:
parent
e5af8a1b4a
commit
9add7369de
17 changed files with 210 additions and 29 deletions
|
|
@ -34,6 +34,7 @@
|
|||
import matchQuery from './match-query'
|
||||
import { displaySchoolLevel } from '@theme/util/spellHelpers'
|
||||
import { displayItemMeta } from '@theme/util/magicItemHelpers'
|
||||
import { displayMonsterTypeSizeAlignment } from '@theme/util/monsterHelpers'
|
||||
|
||||
/* global SEARCH_MAX_SUGGESTIONS, SEARCH_PATHS, SEARCH_HOTKEYS */
|
||||
export default {
|
||||
|
|
@ -118,6 +119,12 @@ export default {
|
|||
title: p.title,
|
||||
path: p.path
|
||||
}))
|
||||
} else if (p.pid && p.pid == 'monster') {
|
||||
res.push(Object.assign({}, p, {
|
||||
subtitle: displayMonsterTypeSizeAlignment(p.frontmatter, true, false),
|
||||
title: p.title,
|
||||
path: p.path
|
||||
}))
|
||||
} else {
|
||||
res.push(p)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue