« get me outta code hell

content: specify mutable across html & attributes slots - 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:
author(quasar) nebula <qznebula@protonmail.com>2024-01-01 13:47:10 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-01 20:06:23 -0400
commitf53b9df7452ef886cf85db5bb72a48f32dce3dbb (patch)
treee173634830626d1d25b59c04600966f878f47c3c /src/content/dependencies/generateArtistInfoPageChunkItem.js
parente0defee7f7ab50bf3e6d33d6ab04f6c6795bab27 (diff)
content: specify mutable across html & attributes slots
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageChunkItem.js')
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunkItem.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunkItem.js b/src/content/dependencies/generateArtistInfoPageChunkItem.js
index de31d30e..4347df12 100644
--- a/src/content/dependencies/generateArtistInfoPageChunkItem.js
+++ b/src/content/dependencies/generateArtistInfoPageChunkItem.js
@@ -2,10 +2,20 @@ export default {
   extraDependencies: ['html', 'language'],
 
   slots: {
-    content: {type: 'html'},
+    content: {
+      type: 'html',
+      mutable: false,
+    },
+
+    contribution: {
+      type: 'html',
+      mutable: false,
+    },
+
+    otherArtistLinks: {
+      validate: v => v.strictArrayOf(v.isHTML),
+    },
 
-    otherArtistLinks: {validate: v => v.strictArrayOf(v.isHTML)},
-    contribution: {type: 'html'},
     rerelease: {type: 'boolean'},
   },