diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 18:15:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:10 -0300 |
commit | 0b71d7f5005e83e7055173cbac8ebe9bbffab643 (patch) | |
tree | ca4b5cc7fc99865a143ac7d0b45353f71d1466c5 /src | |
parent | b0b50b839025b2e344c0ff968f9e0e498b839b43 (diff) |
content: gAIPChunkedList: blank if slots are blank
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPageChunkedList.js | 11 |
1 files 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]), }; |