From aa0023dadf8b40ccbf3dedfbcbafba25f23b995a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 9 Aug 2023 11:44:46 -0300 Subject: content: generateArtistInfoPageChunk: handle non-range flash dates properly --- src/content/dependencies/generateArtistInfoPageChunk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateArtistInfoPageChunk.js b/src/content/dependencies/generateArtistInfoPageChunk.js index eb9056cb..2b4523d1 100644 --- a/src/content/dependencies/generateArtistInfoPageChunk.js +++ b/src/content/dependencies/generateArtistInfoPageChunk.js @@ -62,7 +62,7 @@ export default { options.dateRange = language.formatDateRange(slots.dateRangeStart, slots.dateRangeEnd); } else if (slots.dateRangeStart || slots.date) { parts.push('withDate'); - options.date = language.formatDate(slots.dateFirst); + options.date = language.formatDate(slots.dateRangeStart ?? slots.date); } accentedLink = language.formatString(parts.join('.'), options); -- cgit 1.3.0-6-gf8a5