From 53b65bd2cbfb1001194d67f57780e92c6c8c5aaf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 14 Jun 2024 22:05:57 -0300 Subject: content: generatePageSidebarBox: blank if no content --- src/content/dependencies/generatePageSidebarBox.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/content') 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'}, -- cgit 1.3.0-6-gf8a5