Skip to content

Commit ac52cbf

Browse files
committed
content: generateArtistInfoPage: for this wiki subheadings
1 parent b82bbd5 commit ac52cbf

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

src/content/dependencies/generateArtistInfoPage.js

+20-10
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,17 @@ export default {
353353
}),
354354

355355
html.tags([
356-
html.tag('p',
357-
{[html.onlyIfSiblings]: true},
356+
language.encapsulate(pageCapsule, 'wikiEditArtworks', capsule =>
357+
relations.contentHeading.clone()
358+
.slots({
359+
tag: 'p',
358360

359-
language.$(pageCapsule, 'wikiEditArtworks', {
360-
artist: data.name,
361-
})),
361+
title:
362+
language.$(capsule, {artist: data.name}),
363+
364+
stickyTitle:
365+
language.$(capsule, 'sticky'),
366+
})),
362367

363368
relations.editsForWikiArtworksChunkedList,
364369
]),
@@ -386,12 +391,17 @@ export default {
386391
relations.commentaryChunkedList,
387392

388393
html.tags([
389-
html.tag('p',
390-
{[html.onlyIfSiblings]: true},
394+
language.encapsulate(pageCapsule, 'wikiEditorCommentary', capsule =>
395+
relations.contentHeading.clone()
396+
.slots({
397+
tag: 'p',
391398

392-
language.$(pageCapsule, 'wikiEditorCommentary', {
393-
artist: data.name,
394-
})),
399+
title:
400+
language.$(capsule, {artist: data.name}),
401+
402+
stickyTitle:
403+
language.$(capsule, 'sticky'),
404+
})),
395405

396406
relations.wikiEditorCommentaryChunkedList,
397407
]),

src/strings-default.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1244,11 +1244,13 @@ artistPage:
12441244
orBrowseList: "View {LINK}! Or browse the list:"
12451245
link: "art gallery"
12461246

1247-
wikiEditArtworks: >-
1248-
{ARTIST} has edited these artworks for this wiki:
1247+
wikiEditArtworks:
1248+
_: "{ARTIST} has edited these artworks for this wiki:"
1249+
sticky: "Artworks — edited for this wiki"
12491250

1250-
wikiEditorCommentary: >-
1251-
{ARTIST} has written these commentary entries as an editor of this wiki:
1251+
wikiEditorCommentary:
1252+
_: "{ARTIST} has written these commentary entries as an editor of this wiki:"
1253+
sticky: "Commentary — written for this wiki"
12521254

12531255
#
12541256
# artistGalleryPage:

0 commit comments

Comments
 (0)