hugo-theme-zirakzigil/layouts/index.html

13 lines
382 B
HTML

{{ define "main" }}
<main class="flex flex-wrap justify-around gap-4">
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
<div class="card lg:w-1/4 glass">
{{ .Render "summary" }}
</div>
{{ end }}
</main>
<div class="flex justify-center">
{{ partial "pagination.html" . }}
</div>
{{ end }}