« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateArtistInfoPageChunkItem.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageChunkItem.js')
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunkItem.js8
1 files changed, 8 insertions, 0 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) {