« get me outta code hell

content: generateDotSwitcherTemplate: observe onlyIfSiblings - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
commit011bd8f5494ae0cb7400240c469e729a1818bd34 (patch)
tree22a07a214709ddd787d89fa1afca7a2d606dc8bd /src
parentbbfe965da8d1d5a416c92c19f30cfd90194c5c1a (diff)
content: generateDotSwitcherTemplate: observe onlyIfSiblings
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateDotSwitcherTemplate.js9
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,
+            ]))),
 };