elli-website/themes/elli/layouts/_default/list.html

16 lines
440 B
HTML
Raw Permalink Normal View History

2023-08-16 13:32:12 +02:00
{{ define "main" }}
<h1 class="container px-6 pt-6 mx-auto text-3xl font-bold">{{ .Title }}</h1>
{{ $paginator := .Paginate .Pages.ByDate.Reverse 6 }}
<div class="container p-6 mx-auto grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-8">
{{ range $paginator.Pages }}
{{- partial "blog-card.html" . -}}
{{ end }}
</div>
{{- partial "pagination.html" . -}}
{{- partial "social.html" . -}}
{{ end }}