diff options
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 |
commit | 53b65bd2cbfb1001194d67f57780e92c6c8c5aaf (patch) | |
tree | cfab5f92ddb4982fdadb5c2c1c5137fd6716113b /src/content | |
parent | 5cc29c65edad1b24a26e549ccc230f4f2770bf56 (diff) |
content: generatePageSidebarBox: blank if no content
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generatePageSidebarBox.js | 2 |
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'}, |