diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-04 12:51:20 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-04 12:51:20 -0300 |
commit | 3096df0c06a750fc5a09e3bde93c7e524ee2b310 (patch) | |
tree | 669259f0261a682259564de22250df3763a423d8 /src/content/dependencies/generateArtistInfoPage.js | |
parent | 504b464f0904f0e008ee6e886e25c6778a99d479 (diff) | |
parent | 7830c73e6047ab8ec1322c4a56ed6a450bfb11e6 (diff) |
Merge remote-tracking branch 'origin/staging' into data-steps
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPage.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index 821512b8..a91eebf2 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -585,7 +585,7 @@ export function write(artist, {wikiData}) { let flashes, flashListChunks; if (wikiInfo.enableFlashesAndGames) { - flashes = sortChronologically(artist.flashesAsContributor.slice()); + flashes = sortFlashesChronologically(artist.flashesAsContributor.slice()); flashListChunks = chunkByProperties( flashes.map((flash) => ({ act: flash.act, @@ -760,6 +760,13 @@ export function write(artist, {wikiData}) { }, }; + const artThingsGallery = sortAlbumsTracksChronologically( + [ + ...(artist.albumsAsCoverArtist ?? []), + ...(artist.tracksAsCoverArtist ?? []), + ], + {latestFirst: true, getDate: (o) => o.coverArtDate}); + const galleryPage = hasGallery && { type: 'page', path: ['artistGallery', artist.directory], |