« 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/generateWikiHomeContentRow.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/content/dependencies/generateWikiHomeContentRow.js b/src/content/dependencies/generateWikiHomeContentRow.js
index 90622801..5b1df99e 100644
--- a/src/content/dependencies/generateWikiHomeContentRow.js
+++ b/src/content/dependencies/generateWikiHomeContentRow.js
@@ -2,16 +2,17 @@ export default {
   contentDependencies: ['generateColorStyleVariables'],
   extraDependencies: ['html'],
 
-  relations(relation, row) {
+  relations(relation) {
     return {
       colorVariables:
-        relation('generateColorStyleVariables', row.color),
+        relation('generateColorStyleVariables'),
     };
   },
 
   data(row) {
     return {
       name: row.name,
+      color: row.color,
     };
   },
 
@@ -24,7 +25,7 @@ export default {
       html.tag('section',
         {
           class: 'row',
-          style: [relations.colorVariables],
+          style: relations.colorVariables.slot('color', data.color).content,
         },
         [
           html.tag('h2', data.name),