« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateArtistInfoPage.js30
-rw-r--r--src/strings-default.yaml10
2 files changed, 26 insertions, 14 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,
             ]),
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 9a2b26b7..4a7c6675 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -1244,11 +1244,13 @@ artistPage:
     orBrowseList: "View {LINK}! Or browse the list:"
     link: "art gallery"
 
-  wikiEditArtworks: >-
-    {ARTIST} has edited these artworks for this wiki:
+  wikiEditArtworks:
+    _: "{ARTIST} has edited these artworks for this wiki:"
+    sticky: "Artworks — edited for this wiki"
 
-  wikiEditorCommentary: >-
-    {ARTIST} has written these commentary entries as an editor of this wiki:
+  wikiEditorCommentary:
+    _: "{ARTIST} has written these commentary entries as an editor of this wiki:"
+    sticky: "Commentary — written for this wiki"
 
 #
 # artistGalleryPage: