« get me outta code hell

content: generateAlbumCoverArtwork: provide dimensions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-26 10:59:54 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-04-13 15:47:34 -0300
commit67840507a46925041ca192d9c429c512210c9113 (patch)
treef57aa670cbbeec60df0a4a16c12f4b5c38e2e2cc
parente440849fae1f582b053eddf327327ad78bfdc894 (diff)
content: generateAlbumCoverArtwork: provide dimensions
-rw-r--r--src/content/dependencies/generateAlbumCoverArtwork.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAlbumCoverArtwork.js b/src/content/dependencies/generateAlbumCoverArtwork.js
index ce8cde21..dbb22fe7 100644
--- a/src/content/dependencies/generateAlbumCoverArtwork.js
+++ b/src/content/dependencies/generateAlbumCoverArtwork.js
@@ -12,11 +12,15 @@ export default {
 
     color:
       album.color,
+
+    dimensions:
+      album.coverArtDimensions,
   }),
 
   generate: (data, relations) =>
     relations.coverArtwork.slots({
       path: data.path,
       color: data.color,
+      dimensions: data.dimensions,
     }),
 };