diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-15 18:41:57 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-15 18:46:59 -0400 |
commit | 011bd8f5494ae0cb7400240c469e729a1818bd34 (patch) | |
tree | 22a07a214709ddd787d89fa1afca7a2d606dc8bd /src/content | |
parent | bbfe965da8d1d5a416c92c19f30cfd90194c5c1a (diff) |
content: generateDotSwitcherTemplate: observe onlyIfSiblings
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateDotSwitcherTemplate.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/content/dependencies/generateDotSwitcherTemplate.js b/src/content/dependencies/generateDotSwitcherTemplate.js index 253c231f..22205922 100644 --- a/src/content/dependencies/generateDotSwitcherTemplate.js +++ b/src/content/dependencies/generateDotSwitcherTemplate.js @@ -27,8 +27,15 @@ export default { html.tag('span', {[html.onlyIfContent]: true}, + html.resolve(option, {normalize: 'tag'}) + .onlyIfSiblings && + {[html.onlyIfSiblings]: true}, + index === slots.initialOptionIndex && {class: 'current'}, - option))), + [ + html.metatag('imaginary-sibling'), + option, + ]))), }; |