diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 13:26:03 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 17:32:56 -0300 |
commit | 1c993c423f3f63aca8dc95a2da7d7ca2988b0fbe (patch) | |
tree | 192bc992ee2e34334daf3264a2539554febee415 /src/content/dependencies | |
parent | 606fae021230dccf4686f60b2fd1c9dd8cc1b00d (diff) |
content: generateAdditionalFilesList: blank if no entries
Diffstat (limited to 'src/content/dependencies')
-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, |