« get me outta code hell

content: generateSecondaryNavParentSiblingsPart: id - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-10-19 22:05:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-11-02 22:25:47 -0300
commit68f5820a0d7e4f1ad472d55ea662483fc4605788 (patch)
tree2eab5c6d20145120da9991ead1337aead807605b /src/content/dependencies
parent5abe7259286d0fd28f9ba91abd08b046d0db7411 (diff)
content: generateSecondaryNavParentSiblingsPart: id
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateSecondaryNavParentSiblingsPart.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js b/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js
index d52a483f..c2051db0 100644
--- a/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js
+++ b/src/content/dependencies/generateSecondaryNavParentSiblingsPart.js
@@ -27,6 +27,11 @@ export default {
       default: true,
     },
 
+    id: {
+      type: 'boolean',
+      default: false,
+    },
+
     attributes: {
       type: 'attributes',
       mutable: false,
@@ -92,12 +97,12 @@ export default {
             relations.switcher.slots({
               links: [
                 relations.previousLink.slots({
-                  id: false,
+                  id: slots.id,
                   link: slots.previousLink,
                 }),
 
                 relations.nextLink.slots({
-                  id: false,
+                  id: slots.id,
                   link: slots.nextLink,
                 }),
               ],