diff options
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 |
commit | 27b5e9a6fd4dff1ab3a1dced2d01cc056940fc6e (patch) | |
tree | 08af4234fd0195dd357e3ecc8e3317b16a6cac3d /src/content/dependencies/generateSecondaryNav.js | |
parent | c60f682c9248d8537246e8f37a7fdced7a0bf06a (diff) |
content, css: generate{Album,]SecondaryNav: alwaysVisible slot
Diffstat (limited to 'src/content/dependencies/generateSecondaryNav.js')
-rw-r--r-- | src/content/dependencies/generateSecondaryNav.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/content/dependencies/generateSecondaryNav.js b/src/content/dependencies/generateSecondaryNav.js index e9aef66e..f4081e70 100644 --- a/src/content/dependencies/generateSecondaryNav.js +++ b/src/content/dependencies/generateSecondaryNav.js @@ -10,11 +10,20 @@ export default { class: { validate: v => v.anyOf(v.isString, v.sparseArrayOf(v.isString)), }, + + alwaysVisible: { + type: 'boolean', + default: false, + }, }, generate: (slots, {html}) => html.tag('nav', {id: 'secondary-nav'}, {[html.onlyIfContent]: true}, {class: slots.class}, + + slots.alwaysVisible && + {class: 'always-visible'}, + slots.content), }; |