« get me outta code hell

content: generateWikiHomeContentRow: update generateColorStyleVariables - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-02 13:23:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-02 13:23:04 -0300
commit619fa8d1de2cb457ec7d350f5e3ec17f24b65cb6 (patch)
treef3916e96c695a6d516b9dccb8bb446e8476e6413
parent4e726092a4cfaa5e8fa104f1f9f54216a75decd3 (diff)
content: generateWikiHomeContentRow: update generateColorStyleVariables
-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),