« 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/generateFlashCoverArtwork.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateFlashCoverArtwork.js')
-rw-r--r--src/content/dependencies/generateFlashCoverArtwork.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/content/dependencies/generateFlashCoverArtwork.js b/src/content/dependencies/generateFlashCoverArtwork.js
index 02590a09..a9fbde38 100644
--- a/src/content/dependencies/generateFlashCoverArtwork.js
+++ b/src/content/dependencies/generateFlashCoverArtwork.js
@@ -1,6 +1,6 @@
 export default {
   contentDependencies: ['generateCoverArtwork'],
-  extraDependencies: ['language'],
+  extraDependencies: ['html', 'language'],
 
   relations: (relation) => ({
     coverArtwork:
@@ -21,8 +21,14 @@ export default {
       flash.coverArtDimensions,
   }),
 
-  generate: (data, relations, {language}) =>
+  slots: {
+    mode: {type: 'string'},
+  },
+
+  generate: (data, relations, slots, {language}) =>
     relations.coverArtwork.slots({
+      mode: slots.mode,
+
       image:
         relations.image.slots({
           data: data.path,