Better bigimg support

Add support for bigimg's on the front page, multiple images that rotate
on both the front page and regular pages and posts, also added test
images and a sample to demonstrate the functionality and how to specify
bigimg's.
This commit is contained in:
Michael Romero 2017-03-07 00:55:44 -08:00
commit f84ba895a8
8 changed files with 54 additions and 17 deletions

View file

@ -7,8 +7,12 @@
{{ partial "nav.html" . }}
<header class="header-section ">
<div class="intro-header no-img">
{{ if .Site.Params.bigimg }}
<div id="header-big-imgs" data-num-img={{len .Site.Params.bigimg}} {{range $i, $img := .Site.Params.bigimg}}data-img-src-{{add $i 1}}="{{$img.src}}" data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}></div>
{{ end }}
<header class="header-section {{ if .Site.Params.bigimg }}has-img{{ end }}">
<div class="intro-header {{ if .Site.Params.bigimg }}big-img{{ else }}no-img{{ end }}">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
@ -22,6 +26,7 @@
</div>
</div>
</div>
<span class="img-desc" style="display: inline;"></span>
</div>
</header>