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

17 lines
429 B
HTML

<!-- 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">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<br/>
<h2>{{ .Title }}</h2>
<br/>
<div class="section-content">
{{ .Content }}
</div>
<br/>
</div>
</div>
</section>
{{ end }}