layouts: Allow hiding the sidebar

Set the following parameter to hide the sidebar:

  [params.sidebar]
    hide = true
This commit is contained in:
Alan Orth 2016-08-28 23:41:34 +03:00
parent 6ccdf9a438
commit bfaa9ac247
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
{{ end }}
</div> <!-- /.blog-main -->
{{ partial "sidebar.html" . }}
{{ if not .Site.Params.sidebar.hide }}
{{ partial "sidebar.html" . }}
{{ end }}
</div> <!-- /.row -->
</div> <!-- /.container -->