« get me outta code hell

content: generateAdditionalFilesList: blank if no entries - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
commitfc731aac2b8573bca081087dce3b6266e0d3845e (patch)
tree11107431e332b6ca5136668778fe29ee54a0717c /src
parent05395c680263e3254fdd91de78163abb963e72a4 (diff)
content: generateAdditionalFilesList: blank if no entries
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateAdditionalFilesList.js2
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,