« get me outta code hell

content: misc content syntax cleanup, mostly attribute merging - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateFlashIndexPage.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-12-29 22:59:20 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-12-30 16:26:36 -0400
commitf400a43640e7106d181d55365a9617c3d12e5891 (patch)
tree91c7911c2f5e91d4a230f807814930761991d23a /src/content/dependencies/generateFlashIndexPage.js
parent25c434a514152fdd02e5405e4de418cd62614c6a (diff)
content: misc content syntax cleanup, mostly attribute merging
Diffstat (limited to 'src/content/dependencies/generateFlashIndexPage.js')
-rw-r--r--src/content/dependencies/generateFlashIndexPage.js30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/content/dependencies/generateFlashIndexPage.js b/src/content/dependencies/generateFlashIndexPage.js
index 5fc62ab3..621d62aa 100644
--- a/src/content/dependencies/generateFlashIndexPage.js
+++ b/src/content/dependencies/generateFlashIndexPage.js
@@ -96,12 +96,10 @@ export default {
       mainClasses: ['flash-index'],
       mainContent: [
         !empty(data.jumpLinkLabels) && [
-          html.tag('p',
-            {class: 'quick-info'},
+          html.tag('p', {class: 'quick-info'},
             language.$('misc.jumpTo')),
 
-          html.tag('ul',
-            {class: 'quick-info'},
+          html.tag('ul', {class: 'quick-info'},
             stitchArrays({
               colorVariables: relations.jumpLinkColorVariables,
               anchor: data.jumpLinkAnchors,
@@ -109,10 +107,15 @@ export default {
               label: data.jumpLinkLabels,
             }).map(({colorVariables, anchor, color, label}) =>
                 html.tag('li',
-                  html.tag('a', {
-                    href: '#' + anchor,
-                    style: colorVariables.slot('color', color).content,
-                  }, label)))),
+                  html.tag('a',
+                    {href: '#' + anchor},
+
+                    {style:
+                      colorVariables
+                        .slot('color', color)
+                        .content},
+
+                    label)))),
         ],
 
         stitchArrays({
@@ -139,10 +142,13 @@ export default {
             coverGridPaths,
           }, index) => [
             html.tag('h2',
-              {
-                id: anchor,
-                style: colorVariables.slot('color', color).content,
-              },
+              {id: anchor},
+
+              {style:
+                colorVariables
+                  .slot('color', color)
+                  .content},
+
               actLink),
 
             coverGrid.slots({