diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 18:15:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 18:15:21 -0300 |
commit | 0e2535a3439f3ee3a3e4b29ed4bd74c0065d8838 (patch) | |
tree | 8b2e94d1013af9f5246ead1326c1378294771e7c | |
parent | 842c7661728b5c2ca7f0097e1f05a15ccb3c8981 (diff) |
content: gAIPChunkedList: blank if slots are blank
-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]), }; |