16 lines
442 B
HTML
16 lines
442 B
HTML
|
{{ $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 }}
|
||
|
|