From 0126aca3e2c3d265be0d52728ce031ab27e380f3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 7 Mar 2022 00:34:22 -0400 Subject: fix date added to wiki showing current date --- src/page/album.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/page') diff --git a/src/page/album.js b/src/page/album.js index 6bcff886..b9965547 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -210,13 +210,15 @@ export function write(album, {wikiData}) { ${album.tracks.map(trackToListItem).join('\n')} `} -

- ${[ - strings('releaseInfo.addedToWiki', { - date: strings.count.date(album.dateAdded) - }) - ].filter(Boolean).join('
\n')} -

+ ${album.dateAddedToWiki && fixWS` +

+ ${[ + strings('releaseInfo.addedToWiki', { + date: strings.count.date(album.dateAddedToWiki) + }) + ].filter(Boolean).join('
\n')} +

+ `} ${album.commentary && fixWS`

${strings('releaseInfo.artistCommentary')}

-- cgit 1.3.0-6-gf8a5