diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-06 17:19:38 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-06 17:19:38 -0300 |
commit | 46f62d621edc325c593981b4f8ef44d0bcadca88 (patch) | |
tree | fda1d9e0e3fcc4d8d3f99f8941fc774dee3df462 | |
parent | c14d6ad8895c387727788695e532070346b374e8 (diff) |
content: generatePageLayout: fix blank sidebar behavior
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js index 5866ac26..313ca9a9 100644 --- a/src/content/dependencies/generatePageLayout.js +++ b/src/content/dependencies/generatePageLayout.js @@ -371,7 +371,7 @@ export default { const getSidebar = (side, id) => (html.isBlank(slots[side]) - ? null + ? html.blank() : slots[side].slots({ attributes: slots[side] @@ -386,10 +386,10 @@ export default { const hasSidebarRight = !html.isBlank(html.resolve(rightSidebar)); const collapseSidebars = - (leftSidebar + (hasSidebarLeft ? leftSidebar.getSlotValue('collapse') : true) && - (rightSidebar + (hasSidebarRight ? rightSidebar.getSlotValue('collapse') : true); |