« get me outta code hell

content: generateAlbumInfoPage: fix misaligned art chronology info - 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-02-14 12:12:39 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-14 13:26:45 -0400
commit7aa6747fd8b29e2690ff3522fac731081b2b8946 (patch)
treeb6617de40c0b34cca7e167f988e1164bf60d5ce3
parent2d652ccc84e1d27c6216fcd570800ed8b0f5216e (diff)
content: generateAlbumInfoPage: fix misaligned art chronology info
-rw-r--r--src/content/dependencies/generateAlbumInfoPage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js
index cb7355f3..26aa4376 100644
--- a/src/content/dependencies/generateAlbumInfoPage.js
+++ b/src/content/dependencies/generateAlbumInfoPage.js
@@ -58,7 +58,9 @@ export default {
           sortAlbumsTracksChronologically([
             ...artist.albumsAsCoverArtist,
             ...artist.tracksAsCoverArtist,
-          ]),
+          ], {
+            getDate: thing => thing.coverArtDate ?? thing.date,
+          }),
       });
 
     relations.albumNavAccent =