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

16 lines
567 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 }}
{{ 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 }}
{{ end }}