« get me outta code hell

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:
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({