diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-20 07:31:01 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-20 07:32:11 -0400 |
commit | 01ad4dda0d8609fbfb2759cc1bb975b9c6b71c58 (patch) | |
tree | cdc971f0edb6cd5aeba105230c873a75ac63e270 | |
parent | bd2629856c53facea5ff756a7e03a2758b32b6ba (diff) |
content: fix a couple code bugs w/ cover artwork changes
Oops! All peachy now.
-rw-r--r-- | src/content/dependencies/generateAlbumInfoPage.js | 8 | ||||
-rw-r--r-- | src/content/dependencies/generateFlashCoverArtwork.js | 2 | ||||
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 10 |
3 files changed, 12 insertions, 8 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js index 14745b96..1f741a60 100644 --- a/src/content/dependencies/generateAlbumInfoPage.js +++ b/src/content/dependencies/generateAlbumInfoPage.js @@ -109,9 +109,11 @@ export default { additionalNames: relations.additionalNamesBox, cover: - relations.cover?.slots({ - showReferenceLinks: true, - }), + (relations.cover + ? relations.cover.slots({ + showReferenceLinks: true, + }) + : null), mainContent: [ relations.releaseInfo, diff --git a/src/content/dependencies/generateFlashCoverArtwork.js b/src/content/dependencies/generateFlashCoverArtwork.js index a9fbde38..e6a72e78 100644 --- a/src/content/dependencies/generateFlashCoverArtwork.js +++ b/src/content/dependencies/generateFlashCoverArtwork.js @@ -1,5 +1,5 @@ export default { - contentDependencies: ['generateCoverArtwork'], + contentDependencies: ['generateCoverArtwork', 'image'], extraDependencies: ['html', 'language'], relations: (relation) => ({ diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 39f2a437..4540b79c 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -140,10 +140,12 @@ export default { styleRules: [relations.albumStyleRules], cover: - relations.cover?.slots({ - showReferenceLinks: true, - showNonUniqueLine: true, - }), + (relations.cover + ? relations.cover.slots({ + showReferenceLinks: true, + showNonUniqueLine: true, + }) + : null), mainContent: [ relations.releaseInfo, |