bunteshaus.de/themes/buha/layouts/partials/list/events.html

16 lines
442 B
HTML
Raw Normal View History

2022-04-03 21:08:42 +02:00
{{ $s := .Site.Params }}
{{- $paginator := slice -}}
{{- $paginator = .Paginate (where site.RegularPages.ByDate.Reverse ".Params.when" "ne" nil) -}}
{{ if eq $paginator.PageNumber 1 }}
{{ if ne .Content "" }}
<article>
{{ .Content }}
</article>
{{ end }}
{{ end }}
{{- range first 5 $paginator.Pages -}}
{{ partial "structure/list_article.html" . }}
{{- end }}
{{ partial "structure/paginator" "paginator" $paginator }}