uci-hugo-landingpage/layouts/partials/sections.html

10 lines
313 B
HTML
Raw Normal View History

2017-02-28 09:56:46 -08:00
<!-- Renders Section Based on Content -->
{{ $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>
<div class="section-content">
{{ .Content }}
</div>
2017-02-28 09:56:46 -08:00
</section>
{{ end }}