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

41 lines
1.3 KiB
HTML

{{ define "main" }}
<section class="section">
<div class="container">
<div class="columns is-centered">
{{- partial "search.html" . -}}
</div>
<div class="columns is-centered">
<div class="column">
<div style="margin-bottom: 1em;">
{{ range .Site.Taxonomies.tags }}
<a class="tag is-primary is-light" href="{{ .Page.Permalink }}">{{ .Page.Title }}</a>
{{ end }}
</div>
</div>
</div>
<div class="columns is-centered">
<div class="column">
{{ range $index, $page := .Site.RegularPages }}
{{ if eq (mod $index 4) 0 }}{{ partial "box.html" $page }}{{ end }}
{{ end }}
</div>
<div class="column">
{{ range $index, $page := .Site.RegularPages }}
{{ if eq (mod $index 4) 1 }}{{ partial "box.html" $page }}{{ end }}
{{ end }}
</div>
<div class="column">
{{ range $index, $page := .Site.RegularPages }}
{{ if eq (mod $index 4) 2 }}{{ partial "box.html" $page }}{{ end }}
{{ end }}
</div>
<div class="column">
{{ range $index, $page := .Site.RegularPages }}
{{ if eq (mod $index 4) 3 }}{{ partial "box.html" $page }}{{ end }}
{{ end }}
</div>
</div>
</div>
</section>
{{ end }}