« get me outta code hell

content: generateTrackListDividedByGroups: blank if no tracks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-12 13:30:46 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:32:56 -0300
commit2be0b6fc1983ba69829517257ee4d0b098cc4624 (patch)
tree05e61c87c8e67426dbd71dbfd961eb6884c09b2a /src/content
parent6f18e22441c6eaaf62beb267e2e698df115e27ab (diff)
content: generateTrackListDividedByGroups: blank if no tracks
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateTrackListDividedByGroups.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateTrackListDividedByGroups.js b/src/content/dependencies/generateTrackListDividedByGroups.js
index 327865f0..21dc9ac1 100644
--- a/src/content/dependencies/generateTrackListDividedByGroups.js
+++ b/src/content/dependencies/generateTrackListDividedByGroups.js
@@ -80,7 +80,7 @@ export default {
 
   generate: (data, relations, slots, {html, language}) =>
     relations.flatList ??
-    html.tag('dl', [
+    html.tag('dl', {[html.onlyIfContent]: true}, [
       stitchArrays({
         groupName: data.groupNames,
         groupLink: relations.groupLinks,