culinary.kemonine.info/themes/hugo-cuisine-book/layouts/_default/list.html
2022-12-03 10:27:03 -05:00

30 lines
986 B
HTML

{{ define "main" }}
<section class="section">
<div class="container">
<div class="columns is-centered">
<div class="column is-half">
<h3 class="title">{{ humanize .Page.Title }}</h3>
</div>
</div>
<div class="columns is-centered">
<div class="column">
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 0 }}{{
partial "box.html" $page }}{{ end }} {{ end }}
</div>
<div class="column">
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 1 }}{{
partial "box.html" $page }}{{ end }} {{ end }}
</div>
<div class="column">
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 2 }}{{
partial "box.html" $page }}{{ end }} {{ end }}
</div>
<div class="column">
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 3 }}{{
partial "box.html" $page }}{{ end }} {{ end }}
</div>
</div>
</div>
</section>
{{ end }}