From 619fa8d1de2cb457ec7d350f5e3ec17f24b65cb6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 2 Aug 2023 13:23:04 -0300 Subject: content: generateWikiHomeContentRow: update generateColorStyleVariables --- src/content/dependencies/generateWikiHomeContentRow.js | 7 ++++--- 1 file 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), -- cgit 1.3.0-6-gf8a5