« get me outta code hell

content: generateTrackInfoPageOtherReleasesList: blank if empty - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTrackInfoPageOtherReleasesList.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-12 14:03:46 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:09 -0300
commit8d29e235efd3b9b9b0c9fc82082d6426602850d0 (patch)
treec0cd5142208d778cc8514d9ec7319559f3ce2a39 /src/content/dependencies/generateTrackInfoPageOtherReleasesList.js
parenta0a58585b8794ceb97d2610791c9438b105c712f (diff)
content: generateTrackInfoPageOtherReleasesList: blank if empty
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPageOtherReleasesList.js')
-rw-r--r--src/content/dependencies/generateTrackInfoPageOtherReleasesList.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTrackInfoPageOtherReleasesList.js b/src/content/dependencies/generateTrackInfoPageOtherReleasesList.js
index 5c499760..004bba6d 100644
--- a/src/content/dependencies/generateTrackInfoPageOtherReleasesList.js
+++ b/src/content/dependencies/generateTrackInfoPageOtherReleasesList.js
@@ -44,6 +44,8 @@ export default {
 
   generate: (relations, {html, language}) =>
     html.tag('ul',
+      {[html.onlyIfContent]: true},
+
       stitchArrays({
         trackLink: relations.trackLinks,
         albumLink: relations.albumLinks,