diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-03-31 08:21:09 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-03-31 08:21:09 -0300 |
commit | d6830f40d2bbbbf2f929cc34881019721ca04092 (patch) | |
tree | 112e1e6dd415d79aa952f605ac4139e5b25e013c | |
parent | 8ba24ca60ea3019f3d1438092c6888ac239105e9 (diff) |
content: generateArtistInfoPage: fix avatar slotting preview
-rw-r--r-- | src/content/dependencies/generateArtistInfoPage.js | 19 |
1 files 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), |