« get me outta code hell

content, css: generate{Album,]SecondaryNav: alwaysVisible slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumSecondaryNav.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-12-19 12:12:59 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-12-19 13:25:16 -0400
commit27b5e9a6fd4dff1ab3a1dced2d01cc056940fc6e (patch)
tree08af4234fd0195dd357e3ecc8e3317b16a6cac3d /src/content/dependencies/generateAlbumSecondaryNav.js
parentc60f682c9248d8537246e8f37a7fdced7a0bf06a (diff)
content, css: generate{Album,]SecondaryNav: alwaysVisible slot
Diffstat (limited to 'src/content/dependencies/generateAlbumSecondaryNav.js')
-rw-r--r--src/content/dependencies/generateAlbumSecondaryNav.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAlbumSecondaryNav.js b/src/content/dependencies/generateAlbumSecondaryNav.js
index 5a5ebbda..79a26b19 100644
--- a/src/content/dependencies/generateAlbumSecondaryNav.js
+++ b/src/content/dependencies/generateAlbumSecondaryNav.js
@@ -75,6 +75,11 @@ export default {
       validate: v => v.is('album', 'track'),
       default: 'album',
     },
+
+    alwaysVisible: {
+      type: 'boolean',
+      default: false,
+    },
   },
 
   generate(relations, slots, {html}) {
@@ -102,6 +107,8 @@ export default {
     ];
 
     return relations.secondaryNav.slots({
+      alwaysVisible: slots.alwaysVisible,
+
       class: [
         'album-secondary-nav',