diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2017-05-18 15:49:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 15:49:50 +0300 |
commit | bb7962089d0fe8fed483dae53997f39b6a10930e (patch) | |
tree | 184e8b5ee1745be1583c994399274fcdebe63a47 /layouts/partials | |
parent | 679248a7c13280827e3aa64c3ae048aec9efcc90 (diff) | |
parent | 4a1529d7cfdfc07d9d1cba6173a1ae322dbe7931 (diff) |
Merge pull request #79 from mattstratton/optional-jumbo
Add support for jumbotron on row layout
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/row.html | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/layouts/partials/row.html b/layouts/partials/row.html index 0d9c64b..42c37c8 100644 --- a/layouts/partials/row.html +++ b/layouts/partials/row.html @@ -1,4 +1,10 @@ +{{ if isset .Site.Params "enable_jumbo" }} + {{ if eq .Site.Params.enable_jumbo "true" }} + {{- partial "jumbotron.html" . }} + {{ end }} +{{ end }} <div class="row hero_container"> + <div class="col-md-12"> <h2> Latest Episode @@ -72,7 +78,15 @@ {{ $list := (where .Data.Pages "Type" "episode") }} {{ $len := (len $list)}} <div class="row main_container"> -<div class="col-md-8"> +{{ with .Site.Params.enable_jumbo }} + {{ if eq . "true" }} + <div class = "col"> + {{ else }} + <div class="col-md-8"> + {{ end }} +{{ else }} + <div class="col-md-8"> +{{ end }} {{ if gt $len 1 }} {{ range $paginator.Pages }} <div class = "row homepage_episode_row"> @@ -112,9 +126,19 @@ {{ end }} {{ end }} </div> -<div class="col-md-4 sidebar_col"> - {{ partial "sidebar.html" . }} -</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> + {{ else }} + <div class="col-md-4 sidebar_col"> + {{ partial "sidebar.html" . }} + </div> + {{ end }} +{{ end }} + </div> <div class="row"> <div class="col-md-12"> |