From bfaa9ac247aeed2e35c9645ee211d3f969754c4e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 28 Aug 2016 23:41:34 +0300 Subject: [PATCH] layouts: Allow hiding the sidebar Set the following parameter to hide the sidebar: [params.sidebar] hide = true --- layouts/partials/content.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 220f57d..03f88e4 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -6,7 +6,9 @@ {{ end }} - {{ partial "sidebar.html" . }} + {{ if not .Site.Params.sidebar.hide }} + {{ partial "sidebar.html" . }} + {{ end }}