diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-11 11:32:40 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-11 11:32:40 -0400 |
| commit | 953f09124c4cddeac78ffa57cfc6dc88d7720d74 (patch) | |
| tree | e7c689c18eb84863d7d47d07ffe745e718055bf2 /src/content/dependencies | |
| parent | 3c9d3cc91b9b1bb31fa2129d922a4539af171a2b (diff) | |
content: gAIPChunkItem: new annotations look
Diffstat (limited to 'src/content/dependencies')
| -rw-r--r-- | src/content/dependencies/generateArtistInfoPageChunkItem.js | 8 | ||||
| -rw-r--r-- | src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunkItem.js b/src/content/dependencies/generateArtistInfoPageChunkItem.js index 45a39d46..cf45a37c 100644 --- a/src/content/dependencies/generateArtistInfoPageChunkItem.js +++ b/src/content/dependencies/generateArtistInfoPageChunkItem.js @@ -17,6 +17,11 @@ export default { mutable: false, }, + citation: { + type: 'html', + mutable: false, + }, + otherArtistLinks: { validate: v => v.strictArrayOf(v.isHTML), }, @@ -71,6 +76,9 @@ export default { if (!html.isBlank(slots.annotation)) { workingCapsule += '.withAnnotation'; workingOptions.annotation = slots.annotation; + } else if (!html.isBlank(slots.citation)) { + workingCapsule += '.withCitation'; + workingOptions.citation = slots.citation; } if (workingCapsule === entryCapsule) { diff --git a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js index 08446a2e..572eb982 100644 --- a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js @@ -231,7 +231,9 @@ export default { type: itemTypes, }).map(({item, link, annotation, type}) => item.slots({ - annotation: + // The citation slot, instead of annotation, gives commentary + // a specially custom look. + citation: annotation.slots({ mode: 'inline', absorbPunctuationFollowingExternalLinks: false, |