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.
15 lines
No EOL
635 B
HTML
15 lines
No EOL
635 B
HTML
{{ if or .Params.bigimg .Title }}
|
|
|
|
{{ if .Params.bigimg }}
|
|
<div id="header-big-imgs" data-num-img={{len .Params.bigimg}} {{range $i, $img := .Params.bigimg}}data-img-src-{{add $i 1}}="{{$img.src}}" {{ if $img.desc}}data-img-desc-{{add $i 1}}="{{$img.desc}}"{{end}}{{end}}></div>
|
|
{{ end }}
|
|
|
|
<header class="header-section {{ if .Params.bigimg }}has-img{{ end }}">
|
|
<div class="intro-header {{ if .Params.bigimg }}big-img{{ else }}no-img{{ end }}">
|
|
{{ partial "header.html" . }}
|
|
<span class="img-desc" style="display: inline;"></span>
|
|
</div>
|
|
</header>
|
|
{{ else }}
|
|
<div class="intro-header"></div>
|
|
{{ end }} |