« get me outta code hell

content: generateArtistInfoPage: for this wiki subheadings - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-04 13:50:19 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-04 13:50:19 -0400
commitac52cbf1692746c9bf96d79c5f15b27911df300c (patch)
tree3f05abf0dff11988850e95142f00d953238ea81a /src/content
parentb82bbd5e5ee13cdfc0c2dbdb7ed8f6ba8ff6e962 (diff)
content: generateArtistInfoPage: for this wiki subheadings
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtistInfoPage.js30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js
index 860e790d..9701341b 100644
--- a/src/content/dependencies/generateArtistInfoPage.js
+++ b/src/content/dependencies/generateArtistInfoPage.js
@@ -353,12 +353,17 @@ export default {
               }),
 
             html.tags([
-              html.tag('p',
-                {[html.onlyIfSiblings]: true},
+              language.encapsulate(pageCapsule, 'wikiEditArtworks', capsule =>
+                relations.contentHeading.clone()
+                  .slots({
+                    tag: 'p',
 
-                language.$(pageCapsule, 'wikiEditArtworks', {
-                  artist: data.name,
-                })),
+                    title:
+                      language.$(capsule, {artist: data.name}),
+
+                    stickyTitle:
+                      language.$(capsule, 'sticky'),
+                  })),
 
               relations.editsForWikiArtworksChunkedList,
             ]),
@@ -386,12 +391,17 @@ export default {
             relations.commentaryChunkedList,
 
             html.tags([
-              html.tag('p',
-                {[html.onlyIfSiblings]: true},
+              language.encapsulate(pageCapsule, 'wikiEditorCommentary', capsule =>
+                relations.contentHeading.clone()
+                  .slots({
+                    tag: 'p',
 
-                language.$(pageCapsule, 'wikiEditorCommentary', {
-                  artist: data.name,
-                })),
+                    title:
+                      language.$(capsule, {artist: data.name}),
+
+                    stickyTitle:
+                      language.$(capsule, 'sticky'),
+                  })),
 
               relations.wikiEditorCommentaryChunkedList,
             ]),