« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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);