« 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/dependencies/generateWikiHomeContentRow.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateWikiHomeContentRow.js')
-rw-r--r--src/content/dependencies/generateWikiHomeContentRow.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/content/dependencies/generateWikiHomeContentRow.js b/src/content/dependencies/generateWikiHomeContentRow.js
index 5b1df99e..c8354fea 100644
--- a/src/content/dependencies/generateWikiHomeContentRow.js
+++ b/src/content/dependencies/generateWikiHomeContentRow.js
@@ -20,16 +20,15 @@ export default {
     content: {type: 'html'},
   },
 
-  generate(data, relations, slots, {html}) {
-    return (
-      html.tag('section',
-        {
-          class: 'row',
-          style: relations.colorVariables.slot('color', data.color).content,
-        },
-        [
-          html.tag('h2', data.name),
-          slots.content,
-        ]));
-  },
+  generate: (data, relations, slots, {html}) =>
+    html.tag('section', {class: 'row'},
+      {style:
+        relations.colorVariables
+          .slot('color', data.color)
+          .content},
+
+      [
+        html.tag('h2', data.name),
+        slots.content,
+      ]),
 };