From 38de0c9dfe6bb598bef0effb980bd001553ef59c Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Mon, 27 Mar 2023 18:32:07 +0000
Subject: [PATCH] feat: hide sidebar on certain posts (#439)

---
 layouts/_default/baseof.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b4d7002..eb00465 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -13,7 +13,7 @@
   <body class="body">
     <div class="wrapper">
       <aside
-        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
+        {{ if (and (or (eq .Site.Params.hidesidebar true) (eq .Params.hidesidebar true)) (not .IsHome)) }}
           class="wrapper__sidebar wrapper__sidebar--hidden"
         {{ else }}
           class="wrapper__sidebar"
@@ -22,7 +22,7 @@
         {{- partial "sidebar.html" . -}}
       </aside>
       <main
-        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
+        {{ if (and (or (eq .Site.Params.hidesidebar true) (eq .Params.hidesidebar true)) (not .IsHome)) }}
           class="wrapper__main wrapper__main--fullscreen"
         {{ else }}
           class="wrapper__main"

--
Gitblit v1.10.0