From 5abe7259286d0fd28f9ba91abd08b046d0db7411 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 19 Oct 2024 22:04:16 -0300 Subject: content: generateSecondaryNavParentSiblingsPart: showPreviousNext --- .../dependencies/generateSecondaryNavParentSiblingsPart.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/content/dependencies/generateSecondaryNavParentSiblingsPart.js') 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; } -- cgit 1.3.0-6-gf8a5