2017-02-28 09:56:46 -08:00
|
|
|
<!-- Renders Section Based on Content -->
|
2017-03-04 08:12:31 -08:00
|
|
|
{{ $parity := "odd" }} {{ range $i, $e := .Data.Pages }}
|
2017-03-30 16:09:00 -07:00
|
|
|
{{ if ne .Params.hidden true }}
|
|
|
|
<section id="{{ .File.BaseFileName }}" class="section section--{{ .File.BaseFileName }} section--{{ if modBool $i 2 }}odd{{ else }}even{{ 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>
|
|
|
|
<div class="section__content section-content--{{ .File.BaseFileName }}">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-28 09:56:46 -08:00
|
|
|
</section>
|
|
|
|
{{ end }}
|
2017-03-30 16:09:00 -07:00
|
|
|
{{ end }}
|