{{ $page := . }} {{ if $page.Pages }} {{ if $page.Param "paige.show_full_pages" }} {{ $p := $page.Paginate $page.Pages }}
{{ range $p.Pages }} {{ $page.Scratch.Set "paige_show_full_pages" true }} {{ partial "paige/article.html" $page }} {{ end }}
{{ if or $p.HasPrev $p.HasNext }}
{{ partial "paige/pagination.html" $page }}
{{ end }} {{ else }} {{ $p := $page.Paginate ($page.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
{{ range $p.PageGroups }} {{ if $page.Param "paige.page_list.date_header.hide" | not }}

{{ .Key }}

{{ end }} {{ range .Pages }} {{ $class := "text-center" }} {{ $authors := cond ($page.Param "paige.page_list.authors.show" | not) "" (partial "paige/func-authors.html" .) }} {{ $authorsclass := $page.Param "paige.page_list.authors.class" | default (print $class " text-secondary") }} {{ $categories := cond ($page.Param "paige.page_list.categories.show" | not) slice (.Params.categories | default slice) | sort | uniq }} {{ $categoriesclass := $page.Param "paige.page_list.categories.class" | default "badge text-bg-secondary text-decoration-none" }} {{ $date := cond ($page.Param "paige.page_list.date.show" | not) "" .PublishDate }} {{ $dateclass := $page.Param "paige.page_list.date.class" | default (print $class " text-secondary") }} {{ $description := cond ($page.Param "paige.page_list.description.hide" | not) (.Description | markdownify) "" }} {{ $descriptionclass := $page.Param "paige.page_list.description.class" | default $class }} {{ $flags := slice }} {{ $gap := "mb-0" }} {{ $readingtime := $page.Param "paige.page_list.reading_time.show" }} {{ $readingtimeclass := $page.Param "paige.page_list.reading_time.class" | default "text-center text-secondary" }} {{ $summary := cond ($page.Param "paige.page_list.summary.show" | not) "" (.Summary | strings.TrimPrefix "

" | strings.TrimSuffix "

") }} {{ $summaryclass := $page.Param "paige.page_list.summary.class" | default $class }} {{ $title := cond ($page.Param "paige.page_list.title.hide" | not) (.Title | markdownify) "" }} {{ $titleclass := $page.Param "paige.page_list.title.class" | default $class }} {{ if .Draft }} {{ $flags = $flags | append "paige-draft" "paige-unpublished" }} {{ end }} {{ if and .ExpiryDate (lt .ExpiryDate now) }} {{ $flags = $flags | append "paige-expired" "paige-unpublished" }} {{ end }} {{ if and .PublishDate (gt .PublishDate now) }} {{ $flags = $flags | append "paige-future" "paige-unpublished" }} {{ end }} {{ if and .PublishDate .Lastmod (lt .PublishDate .Lastmod) }} {{ $flags = $flags | append "paige-modified" }} {{ end }} {{ $flags = delimit ($flags | sort | uniq) " " }}

{{ $title | markdownify }}

{{ with $description }}

{{ . }}

{{ end }} {{ with $authors }}

{{ . }}

{{ end }} {{ if $date }}

{{ end }} {{ if $readingtime }}

{{ .ReadingTime }} {{ i18n "paige_minutes" .ReadingTime }}

{{ end }} {{ with $categories }}

{{ range . }} {{ . }} {{ end }}

{{ end }} {{ if $summary }}

{{ $summary }}

{{ end }} {{ end }} {{ end }}
{{ if or $p.HasPrev $p.HasNext }}
{{ partial "paige/pagination.html" $page }}
{{ end }} {{ end }} {{ end }}