« 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/generateCommentarySection.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateCommentarySection.js')
-rw-r--r--src/content/dependencies/generateCommentarySection.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/content/dependencies/generateCommentarySection.js b/src/content/dependencies/generateCommentarySection.js
deleted file mode 100644
index 0be81c3b..00000000
--- a/src/content/dependencies/generateCommentarySection.js
+++ /dev/null
@@ -1,38 +0,0 @@
-export default {
-  contentDependencies: [
-    'transformContent',
-    'generateCommentaryEntry',
-    'generateContentHeading',
-  ],
-
-  extraDependencies: ['html', 'language'],
-
-  relations: (relation, entries) => ({
-    heading:
-      relation('generateContentHeading'),
-
-    entries:
-      entries.map(entry =>
-        relation('generateCommentaryEntry', entry)),
-  }),
-
-  slots: {
-    title: {type: 'html', mutable: false},
-    id: {type: 'string', default: 'artist-commentary'},
-  },
-
-  generate: (relations, slots, {html, language}) =>
-    html.tags([
-      relations.heading
-        .slots({
-          title:
-            (html.isBlank(slots.title)
-              ? language.$('misc.artistCommentary')
-              : slots.title),
-
-          attributes: {id: slots.id},
-        }),
-
-      relations.entries,
-    ]),
-};