« get me outta code hell

content: gAIP{Chunk,ChunkItem}: trimAnnotation / trimAnnotations - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateArtistInfoPageChunk.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-08-15 14:13:46 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-08-15 14:13:46 -0300
commit53794015af7ca4022b93e6536abb3dcee5ba9ece (patch)
treedcacd159ebefd890c802a84b9b7442edc20e0d26 /src/content/dependencies/generateArtistInfoPageChunk.js
parentef942bf281194c318dc306cb56f2058b9a600c7a (diff)
content: gAIP{Chunk,ChunkItem}: trimAnnotation / trimAnnotations
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageChunk.js')
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunk.js10
1 files changed, 9 insertions, 1 deletions
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,
+            })))),
     ]);
   },
 };