2017-02-28 09:56:46 -08:00
|
|
|
<!-- Renders Section Based on Content -->
|
2017-04-07 01:40:29 -07:00
|
|
|
{{ $.Scratch.Set "offset" 0 }}
|
|
|
|
{{ range $i, $e := where ( where .Site.RegularPages "Section" "sections" ) ".Params.hidden" "!=" true }}
|
|
|
|
{{ if eq .File.BaseFileName "hero" }}{{ $.Scratch.Set "offset" 1 }}{{ end }}
|
|
|
|
{{ $j := add ( $.Scratch.Get "offset" ) $i }}
|
|
|
|
<section id="{{ .File.BaseFileName }}" class="section section--{{ .File.BaseFileName }} {{ if ne .File.BaseFileName "hero" }}section--{{ if modBool $j 2 }}odd{{ else }}even{{ end }}{{ end }}">
|
2017-03-10 22:59:27 -08:00
|
|
|
<div class="section__container">
|
|
|
|
<div class="section__headline section__headline--{{ .File.BaseFileName }}">
|
2017-03-04 20:02:56 -08:00
|
|
|
<h1>{{ .Title }}</h1>
|
2017-03-10 22:59:27 -08:00
|
|
|
</div>
|
2017-04-01 19:59:26 -07:00
|
|
|
<div class="section__content section-content--{{ .File.BaseFileName }}" {{ with .Params.align }} style="align-items: {{.}};"{{ end }} >
|
2017-03-10 22:59:27 -08:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-28 09:56:46 -08:00
|
|
|
</section>
|
|
|
|
{{ end }}
|