From 1c993c423f3f63aca8dc95a2da7d7ca2988b0fbe Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 12 Jun 2024 13:26:03 -0300 Subject: content: generateAdditionalFilesList: blank if no entries --- src/content/dependencies/generateAdditionalFilesList.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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, -- cgit 1.3.0-6-gf8a5