diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 13:26:03 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:08 -0300 |
commit | fc731aac2b8573bca081087dce3b6266e0d3845e (patch) | |
tree | 11107431e332b6ca5136668778fe29ee54a0717c | |
parent | 05395c680263e3254fdd91de78163abb963e72a4 (diff) |
content: generateAdditionalFilesList: blank if no entries
-rw-r--r-- | src/content/dependencies/generateAdditionalFilesList.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesList.js b/src/content/dependencies/generateAdditionalFilesList.js index f504cf80..68120b23 100644 --- a/src/content/dependencies/generateAdditionalFilesList.js +++ b/src/content/dependencies/generateAdditionalFilesList.js @@ -15,6 +15,8 @@ export default { generate: (slots, {html}) => html.tag('ul', {class: 'additional-files-list'}, + {[html.onlyIfContent]: true}, + stitchArrays({ chunk: slots.chunks, items: slots.chunkItems, |