From 2ba3e81ff0e0c84d9e717457c758d57eec647968 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 25 Mar 2026 08:40:10 -0300 Subject: content, css, data: FlashSide.splitAbove --- src/content/dependencies/generateFlashIndexPage.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/content') 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({ -- cgit 1.3.0-6-gf8a5