From 46f62d621edc325c593981b4f8ef44d0bcadca88 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Apr 2024 17:19:38 -0300 Subject: content: generatePageLayout: fix blank sidebar behavior --- src/content/dependencies/generatePageLayout.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/content') 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); -- cgit 1.3.0-6-gf8a5