« get me outta code hell

content: generatePageLayout: fix blank sidebar behavior - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
commit46f62d621edc325c593981b4f8ef44d0bcadca88 (patch)
treefda1d9e0e3fcc4d8d3f99f8941fc774dee3df462 /src
parentc14d6ad8895c387727788695e532070346b374e8 (diff)
content: generatePageLayout: fix blank sidebar behavior
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generatePageLayout.js6
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);