« get me outta code hell

content: generatePageSidebarBox: blank if no content - 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-14 22:05:57 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:12 -0300
commit53b65bd2cbfb1001194d67f57780e92c6c8c5aaf (patch)
treecfab5f92ddb4982fdadb5c2c1c5137fd6716113b /src/content
parent5cc29c65edad1b24a26e549ccc230f4f2770bf56 (diff)
content: generatePageSidebarBox: blank if no content
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generatePageSidebarBox.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/dependencies/generatePageSidebarBox.js b/src/content/dependencies/generatePageSidebarBox.js
index e11efc3f..26b30494 100644
--- a/src/content/dependencies/generatePageSidebarBox.js
+++ b/src/content/dependencies/generatePageSidebarBox.js
@@ -20,6 +20,8 @@ export default {
 
   generate: (slots, {html}) =>
     html.tag('div', {class: 'sidebar'},
+      {[html.onlyIfContent]: true},
+
       slots.collapsible &&
         {class: 'collapsible'},