1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-25 19:54:31 +01:00
hugo-theme-bootstrap4-blog/layouts/partials/content.html
Alan Orth bfaa9ac247
layouts: Allow hiding the sidebar
Set the following parameter to hide the sidebar:

  [params.sidebar]
    hide = true
2016-08-28 23:41:34 +03:00

15 lines
336 B
HTML

<div class="container">
<div class="row">
<div class="col-sm-8 blog-main">
{{ range .Data.Pages }}
{{ .Render "summary"}}
{{ end }}
</div> <!-- /.blog-main -->
{{ if not .Site.Params.sidebar.hide }}
{{ partial "sidebar.html" . }}
{{ end }}
</div> <!-- /.row -->
</div> <!-- /.container -->