« get me outta code hell

content: many onlyIfContent, onlyIfSiblings, onlyIfOptions uses - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumInfoPage.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-07 16:01:01 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-07 20:28:00 -0300
commite7a026a9b5ccce1ccf11c37c4dcd7fbce89b05cf (patch)
treef4bba0d02652a561b2ce047f8b43dec18cdcfcdd /src/content/dependencies/generateAlbumInfoPage.js
parent131378833ac493d009ebe2f85af7e955deba0530 (diff)
content: many onlyIfContent, onlyIfSiblings, onlyIfOptions uses
Diffstat (limited to 'src/content/dependencies/generateAlbumInfoPage.js')
-rw-r--r--src/content/dependencies/generateAlbumInfoPage.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js
index 739a6669..ee08e507 100644
--- a/src/content/dependencies/generateAlbumInfoPage.js
+++ b/src/content/dependencies/generateAlbumInfoPage.js
@@ -213,10 +213,10 @@ export default {
             {[html.joinChildren]: html.tag('br')},
 
             [
-              data.dateAddedToWiki &&
-                language.$('releaseInfo.addedToWiki', {
-                  date: language.formatDate(data.dateAddedToWiki),
-                }),
+              language.$('releaseInfo.addedToWiki', {
+                [language.onlyIfOptions]: ['date'],
+                date: language.formatDate(data.dateAddedToWiki),
+              }),
             ]),
 
           sec.additionalFiles && [