« get me outta code hell

content: generateWikiHomepage{*}: homepage sections - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateWikiHomepageContentRow.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-11 10:34:47 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-12 07:43:59 -0400
commit26c9f3a8feb3803322a14f6f980f96ab62676b35 (patch)
tree5eff9e9d185cd338e98b437f41c8edfade28949b /src/content/dependencies/generateWikiHomepageContentRow.js
parent39f7e9e975990bcfa28f9ccb20ff98e4a2867ddf (diff)
content: generateWikiHomepage{*}: homepage sections
Diffstat (limited to 'src/content/dependencies/generateWikiHomepageContentRow.js')
-rw-r--r--src/content/dependencies/generateWikiHomepageContentRow.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/content/dependencies/generateWikiHomepageContentRow.js b/src/content/dependencies/generateWikiHomepageContentRow.js
deleted file mode 100644
index 3a36033f..00000000
--- a/src/content/dependencies/generateWikiHomepageContentRow.js
+++ /dev/null
@@ -1,30 +0,0 @@
-export default {
-  contentDependencies: ['generateColorStyleAttribute'],
-  extraDependencies: ['html'],
-
-  relations: (relation, row) => ({
-    colorStyle:
-      relation('generateColorStyleAttribute', row.color),
-  }),
-
-  data: (row) => ({
-    name:
-      row.name,
-  }),
-
-  slots: {
-    content: {
-      type: 'html',
-      mutable: false,
-    },
-  },
-
-  generate: (data, relations, slots, {html}) =>
-    html.tag('section', {class: 'row'},
-      relations.colorStyle,
-
-      [
-        html.tag('h2', data.name),
-        slots.content,
-      ]),
-};