From d6830f40d2bbbbf2f929cc34881019721ca04092 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 31 Mar 2025 08:21:09 -0300 Subject: content: generateArtistInfoPage: fix avatar slotting --- src/content/dependencies/generateArtistInfoPage.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index 9701341b..0c4e4189 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -11,6 +11,7 @@ export default { 'generateContentHeading', 'generateCoverArtwork', 'generatePageLayout', + 'image', 'linkArtistGallery', 'linkExternal', 'linkGroup', @@ -73,6 +74,11 @@ export default { ? relation('generateCoverArtwork', [], []) : null), + image: + (artist.hasAvatar + ? relation('image') + : null), + contentHeading: relation('generateContentHeading'), @@ -153,11 +159,14 @@ export default { cover: (relations.cover ? relations.cover.slots({ - path: [ - 'media.artistAvatar', - data.directory, - data.avatarFileExtension, - ], + image: + relations.image.slots({ + path: [ + 'media.artistAvatar', + data.directory, + data.avatarFileExtension, + ], + }), }) : null), -- cgit 1.3.0-6-gf8a5