diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-10-19 22:04:16 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-02 22:25:47 -0300 |
commit | 5abe7259286d0fd28f9ba91abd08b046d0db7411 (patch) | |
tree | a3c2e0f539e2a2a0e5ddbd0733b6bc42d4a2fbc1 /src/content/dependencies/generateSecondaryNavParentSiblingsPart.js | |
parent | 5fd6da3e598a0bd6c480964234629c944c791a60 (diff) |
content: generateSecondaryNavParentSiblingsPart: showPreviousNext
Diffstat (limited to 'src/content/dependencies/generateSecondaryNavParentSiblingsPart.js')
-rw-r--r-- | src/content/dependencies/generateSecondaryNavParentSiblingsPart.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js b/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js index 82b5d151..d52a483f 100644 --- a/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js +++ b/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js @@ -22,9 +22,9 @@ export default { }), slots: { - mode: { - validate: v => v.is('album', 'track'), - default: 'album', + showPreviousNext: { + type: 'boolean', + default: true, }, attributes: { @@ -82,7 +82,7 @@ export default { : slots.mainLink .slot('color', false)); - if (slots.mode === 'album') addPreviousNext: { + if (slots.showPreviousNext) addPreviousNext: { if (html.isBlank(slots.previousLink) && html.isBlank(slots.nextLink)) { break addPreviousNext; } |