From 2be0b6fc1983ba69829517257ee4d0b098cc4624 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 12 Jun 2024 13:30:46 -0300 Subject: content: generateTrackListDividedByGroups: blank if no tracks --- src/content/dependencies/generateTrackListDividedByGroups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/dependencies') 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, -- cgit 1.3.0-6-gf8a5