« get me outta code hell

content, css, data: FlashSide.splitAbove - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-03-25 08:40:10 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-03-25 08:40:10 -0300
commit2ba3e81ff0e0c84d9e717457c758d57eec647968 (patch)
tree8564e11323d729a5a622fe4b1de08b201b508519 /src/content
parent31cf283cf4f8f3c50404e72fdf1d9f8047bccb6c (diff)
content, css, data: FlashSide.splitAbove
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateFlashIndexPage.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/content/dependencies/generateFlashIndexPage.js b/src/content/dependencies/generateFlashIndexPage.js
index cff24c8b..94f7eaae 100644
--- a/src/content/dependencies/generateFlashIndexPage.js
+++ b/src/content/dependencies/generateFlashIndexPage.js
@@ -54,6 +54,10 @@ export default {
       query.jumpActs
         .map(act => act.side.name),
 
+    jumpLinksSplitAbove:
+      query.jumpActs
+        .map(act => act.side.splitAbove),
+
     actAnchors:
       query.flashActs
         .map(act => act.directory),
@@ -81,14 +85,19 @@ export default {
               {[html.onlyIfContent]: true},
               stitchArrays({
                 colorStyle: relations.jumpLinkColorStyles,
+                splitAbove: data.jumpLinksSplitAbove,
                 anchor: data.jumpLinkAnchors,
                 label: data.jumpLinkLabels,
-              }).map(({colorStyle, anchor, label}) =>
+              }).map(({colorStyle, splitAbove, anchor, label}) => [
+                  splitAbove &&
+                    html.tag('br'),
+
                   html.tag('li',
                     html.tag('a',
                       {href: '#' + anchor},
                       colorStyle,
-                      label)))),
+                      label)),
+                ])),
           ]),
 
           stitchArrays({