diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-12-19 12:16:21 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-12-19 13:25:16 -0400 |
commit | a6c2017b4d49e6e52fe3186b0d981d13414c9e0e (patch) | |
tree | 260aa4e2297496412baed8b7e5f9a24c61b23839 /src/content/dependencies/generateSecondaryNav.js | |
parent | 27b5e9a6fd4dff1ab3a1dced2d01cc056940fc6e (diff) |
content: generateSecondaryNav: class -> attributes slot
Just cleanup! class slots are so oldschool.
Diffstat (limited to 'src/content/dependencies/generateSecondaryNav.js')
-rw-r--r-- | src/content/dependencies/generateSecondaryNav.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/content/dependencies/generateSecondaryNav.js b/src/content/dependencies/generateSecondaryNav.js index f4081e70..9ce7ce9b 100644 --- a/src/content/dependencies/generateSecondaryNav.js +++ b/src/content/dependencies/generateSecondaryNav.js @@ -7,8 +7,9 @@ export default { mutable: false, }, - class: { - validate: v => v.anyOf(v.isString, v.sparseArrayOf(v.isString)), + attributes: { + type: 'attributes', + mutable: false, }, alwaysVisible: { @@ -20,7 +21,7 @@ export default { generate: (slots, {html}) => html.tag('nav', {id: 'secondary-nav'}, {[html.onlyIfContent]: true}, - {class: slots.class}, + slots.attributes, slots.alwaysVisible && {class: 'always-visible'}, |