From ac52cbf1692746c9bf96d79c5f15b27911df300c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 4 Feb 2025 13:50:19 -0400 Subject: content: generateArtistInfoPage: for this wiki subheadings --- src/content/dependencies/generateArtistInfoPage.js | 30 ++++++++++++++-------- src/strings-default.yaml | 10 +++++--- 2 files changed, 26 insertions(+), 14 deletions(-) (limited to 'src') 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: -- cgit 1.3.0-6-gf8a5