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-04 20:02:56 -08:00
|
|
|
<section id="{{ .File.BaseFileName }}" class="section-{{ if modBool $i 2 }}odd{{ else }}even{{ end }}">
|
|
|
|
<h1>{{ .Title }}</h1>
|
2017-03-04 08:12:31 -08:00
|
|
|
<div class="section-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2017-02-28 09:56:46 -08:00
|
|
|
</section>
|
|
|
|
{{ end }}
|