From 33f069d8997c494a97f9f6b2dd5651f5bc957d79 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Nov 2024 14:05:14 -0400 Subject: content: generate{Album,Flash,Track}CoverArtwork: mode slot Passthrough. This maintains the interface previously used for all cover artworks and therefore obliterates surrounding hacks. --- src/content/dependencies/generateFlashCoverArtwork.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/content/dependencies/generateFlashCoverArtwork.js') 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, -- cgit 1.3.0-6-gf8a5