« get me outta code hell

content: generateFlashInfoPage: use commentary content heading - 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>2025-07-13 11:20:36 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-13 11:20:36 -0300
commitd3c5ce976e1abf0ae6791fb45b8713b16f031918 (patch)
tree6c4d0aa955c2c54604d3876f93a3c2621666c7bc
parentf3c8fad88506dea9a4dee5c9ccf79858600990a2 (diff)
content: generateFlashInfoPage: use commentary content heading
-rw-r--r--src/content/dependencies/generateFlashInfoPage.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js
index ee043bfa..7f047cad 100644
--- a/src/content/dependencies/generateFlashInfoPage.js
+++ b/src/content/dependencies/generateFlashInfoPage.js
@@ -4,6 +4,7 @@ export default {
   contentDependencies: [
     'generateAdditionalNamesBox',
     'generateCommentaryEntry',
+    'generateCommentaryContentHeading',
     'generateContentContentHeading',
     'generateContentHeading',
     'generateContributionList',
@@ -57,6 +58,9 @@ export default {
     contentContentHeading:
       relation('generateContentContentHeading', flash),
 
+    commentaryContentHeading:
+      relation('generateCommentaryContentHeading', flash),
+
     flashActLink:
       relation('linkFlashAct', flash.act),
 
@@ -172,12 +176,7 @@ export default {
           ]),
 
           html.tags([
-            relations.contentContentHeading.clone()
-              .slots({
-                attributes: {id: 'artist-commentary'},
-                string: 'misc.artistCommentary',
-              }),
-
+            relations.commentaryContentHeading,
             relations.artistCommentaryEntries,
           ]),