From 011bd8f5494ae0cb7400240c469e729a1818bd34 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 15 Nov 2024 18:41:57 -0400 Subject: content: generateDotSwitcherTemplate: observe onlyIfSiblings --- src/content/dependencies/generateDotSwitcherTemplate.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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, + ]))), }; -- cgit 1.3.0-6-gf8a5