« 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/content
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-12 17:32:56 -0300
commit1c993c423f3f63aca8dc95a2da7d7ca2988b0fbe (patch)
tree192bc992ee2e34334daf3264a2539554febee415 /src/content
parent606fae021230dccf4686f60b2fd1c9dd8cc1b00d (diff)
content: generateAdditionalFilesList: blank if no entries
Diffstat (limited to 'src/content')
-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,