From 3db4bb0f8eb2f47076ec1858cb19cdf7148f07db Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Sun, 13 Mar 2022 17:54:45 +0000
Subject: [PATCH] fix: show sidebar only on homepage

---
 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 e63fe6e..703fc9b 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -17,7 +17,7 @@
   >
     <div class="wrapper">
       <aside
-        {{ if and ( or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (eq .Site.Params.hidesidebar true) }}
+        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
           class="wrapper__sidebar--sidebarhidden"
 
         {{ else }}
@@ -28,7 +28,7 @@
         {{- partial "sidebar.html" . -}}
       </aside>
       <main
-        {{ if and ( or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (eq .Site.Params.hidesidebar true) }}
+        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
           class="wrapper__main--sidebarhidden"
 
         {{ else }}

--
Gitblit v1.10.0