From 185aafcedecde5b6f0e8cb394018ebbe2ef6f774 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 02 May 2021 15:29:03 +0000
Subject: [PATCH] refactor: make homepage sidebar optional

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

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5bbab9d..97a22eb 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -8,7 +8,7 @@
     {{- partial "nav" . }}
   </header>
   <div class="main wrap pt-4">
-    {{- if eq .Section "docs" }}
+    {{- if or (eq .Section "docs") (and (ne site.Params.uniqueHomepage true) .IsHome) }}
     {{- partial "document" . }}
     {{- else }}
     {{- block "main" . }}{{ end }}

--
Gitblit v1.10.0