Skip to content

Commit

Permalink
Check for enable_jumbo exist for sidebar display
Browse files Browse the repository at this point in the history
fixes #167

Signed-off-by: Matt Stratton <[email protected]>
  • Loading branch information
mattstratton committed Mar 7, 2018
1 parent 7dfd19a commit 7259f99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ paginate = "9"

[params]
site_theme = "grey"
# site_layout = "grid"
site_layout = "grid"
enable_jumbo = "true"
# enable_jumbo = "false"
# truncate = "100"
# about_logo = "/img/hugocast.png"
copyright_notice = "Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"
Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/row.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,17 @@ <h2>
{{- end -}}
</div>


{{- if isset .Site.Params "enable_jumbo" -}}
{{- if ne .Site.Params.enable_jumbo "true" -}}
<div class="col-md-4 sidebar_col">
{{- partial "sidebar.html" . -}}
</div>
{{- end -}}
{{- else -}}
<div class="col-md-4 sidebar_col">
{{- partial "sidebar.html" . -}}
</div>
{{- end -}}

</div>
Expand Down

0 comments on commit 7259f99

Please sign in to comment.