From 53794015af7ca4022b93e6536abb3dcee5ba9ece Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 15 Aug 2024 14:13:46 -0300 Subject: content: gAIP{Chunk,ChunkItem}: trimAnnotation / trimAnnotations --- src/content/dependencies/generateArtistInfoPageChunk.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/content/dependencies/generateArtistInfoPageChunk.js') diff --git a/src/content/dependencies/generateArtistInfoPageChunk.js b/src/content/dependencies/generateArtistInfoPageChunk.js index c16d50f3..820c01e0 100644 --- a/src/content/dependencies/generateArtistInfoPageChunk.js +++ b/src/content/dependencies/generateArtistInfoPageChunk.js @@ -29,6 +29,11 @@ export default { duration: {validate: v => v.isDuration}, durationApproximate: {type: 'boolean'}, + + trimAnnotations: { + type: 'boolean', + default: false, + }, }, generate(slots, {html, language}) { @@ -102,7 +107,10 @@ export default { html.tag('dt', accentedLink), html.tag('dd', html.tag('ul', - slots.items)), + slots.items + .map(item => item.slots({ + trimAnnotation: slots.trimAnnotations, + })))), ]); }, }; -- cgit 1.3.0-6-gf8a5