{{ if and .amount (or .paginator .pages) }} {{ $amount := .amount }} {{ $pages := .pages.ByLastmod.Reverse }} {{ if .paginator }} {{ $pages = .paginator.Pages.ByLastmod.Reverse }} {{ end }} {{- $paginator := .context.Paginate $pages -}} {{ if eq $paginator.PageNumber 1 }} {{ if .content }} {{ partial "snippets/content" (dict "content" .content) }} {{ end }} {{ end }} {{- if gt (len $pages) 0 -}} {{ if .title }}

{{ .title }}

{{ end }} {{- range first $amount $pages -}}

{{- .Title -}}

{{ partial "layout/article" (dict "context" . "type" "list" "pic" "true") }}
{{ end }} {{ if .paginate }} {{ partial "snippets/paginator" (dict "paginator" $paginator) }} {{ end }} {{ end }} {{ end }}