From 0e2535a3439f3ee3a3e4b29ed4bd74c0065d8838 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 12 Jun 2024 18:15:21 -0300 Subject: content: gAIPChunkedList: blank if slots are blank --- src/content/dependencies/generateArtistInfoPageChunkedList.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/content/dependencies/generateArtistInfoPageChunkedList.js b/src/content/dependencies/generateArtistInfoPageChunkedList.js index 8503d014..e7915ab7 100644 --- a/src/content/dependencies/generateArtistInfoPageChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageChunkedList.js @@ -13,11 +13,8 @@ export default { }, }, - generate(slots, {html}) { - return ( - html.tag('dl', [ - slots.groupInfo, - slots.chunks, - ])); - }, + generate: (slots, {html}) => + html.tag('dl', + {[html.onlyIfContent]: true}, + [slots.groupInfo, slots.chunks]), }; -- cgit 1.3.0-6-gf8a5