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

17 lines
429 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 }}
<section id="{{ .File.BaseFileName }}" class="section-{{ if modBool $i 2 }}odd{{ else }}even{{ end }} text-center">
2017-02-28 09:56:46 -08:00
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<br/>
<h2>{{ .Title }}</h2>
<br/>
<div class="section-content">
{{ .Content }}
</div>
2017-02-28 09:56:46 -08:00
<br/>
</div>
</div>
</section>
{{ end }}