diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-01-26 16:56:47 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-01-26 16:56:47 -0400 |
commit | 91cde73bb69944ec9ceabf8d23ce829df12dbb0a (patch) | |
tree | 97ffd78123fcd34bcfd89ca230e3a4aa81bd5c29 /src/content/dependencies/generateAlbumSocialEmbed.js | |
parent | 0d8619a70f03d9be3e3930fbc499a5918ec88c62 (diff) |
content: generateSocialEmbed: process image path
Diffstat (limited to 'src/content/dependencies/generateAlbumSocialEmbed.js')
-rw-r--r-- | src/content/dependencies/generateAlbumSocialEmbed.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/content/dependencies/generateAlbumSocialEmbed.js b/src/content/dependencies/generateAlbumSocialEmbed.js index 54574e45..ad02e180 100644 --- a/src/content/dependencies/generateAlbumSocialEmbed.js +++ b/src/content/dependencies/generateAlbumSocialEmbed.js @@ -6,7 +6,7 @@ export default { 'generateAlbumSocialEmbedDescription', ], - extraDependencies: ['absoluteTo', 'language', 'urls'], + extraDependencies: ['absoluteTo', 'language'], relations(relation, album) { return { @@ -41,7 +41,7 @@ export default { return data; }, - generate: (data, relations, {absoluteTo, language, urls}) => + generate: (data, relations, {absoluteTo, language}) => language.encapsulate('albumPage.socialEmbed', embedCapsule => relations.socialEmbed.slots({ title: @@ -65,10 +65,7 @@ export default { imagePath: (data.hasImage - ? '/' + - urls - .from('shared.root') - .to('media.albumCover', data.coverArtDirectory, data.coverArtFileExtension) + ? ['media.albumCover', data.coverArtDirectory, data.coverArtFileExtension] : null), })), }; |