{{ $params := . }} {{ $item := $params.item }} {{ $list := $params.list }} {{ $authors := partial "paige/func-authors.html" $item | and ($list.Param "paige.subpages.disable_authors" | not) }} {{ $categories := $item.GetTerms "categories" }} {{ $date := $item.PublishDate | and ($list.Param "paige.subpages.disable_date" | not) }} {{ $description := $item.Description | markdownify | plainify | htmlUnescape | and ($list.Param "paige.subpages.disable_description" | not) }} {{ $draft := $item.Draft }} {{ $expired := and $item.ExpiryDate (lt $item.ExpiryDate now) }} {{ $flags := slice }} {{ $format := $list.Param "paige.site.date_format" | default ":date_long" }} {{ $future := and $item.PublishDate (gt $item.PublishDate now) }} {{ $link := $item.RelPermalink }} {{ $modified := and $item.PublishDate $item.Lastmod (lt $item.PublishDate $item.Lastmod) }} {{ $normal := eq ($list.Param "paige.site.keyword_style" | default "text") "text" }} {{ $series := $item.GetTerms "series" | and ($list.Param "paige.subpages.disable_series" | not) }} {{ $summary := $item.Summary | markdownify | plainify | htmlUnescape | and ($list.Param "paige.subpages.disable_summary" | not) }} {{ $tags := $item.GetTerms "tags" }} {{ $time := $item.ReadingTime | and ($list.Param "paige.subpages.disable_reading_time" | not) }} {{ $title := $item.LinkTitle | markdownify | plainify | htmlUnescape | and ($list.Param "paige.subpages.disable_title" | not) }} {{ $words := $item.WordCount | and ($list.Param "paige.subpages.disable_word_count" | not) }} {{ if $draft }} {{ $flags = $flags | append "paige-status-draft" "paige-status-unpublished" }} {{ end }} {{ if $expired }} {{ $flags = $flags | append "paige-status-expired" "paige-status-unpublished" }} {{ end }} {{ if $future }} {{ $flags = $flags | append "paige-status-future" "paige-status-unpublished" }} {{ end }} {{ if $modified }} {{ $flags = $flags | append "paige-status-modified" }} {{ end }} {{ if not (or $draft $expired $future) }} {{ $flags = $flags | append "paige-status-published" }} {{ end }} {{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }} {{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($list.Param "paige.subpages.disable_keywords" | not) }}
{{ with $title }}

{{ . }}

{{ end }} {{ with $description }}

{{ . }}

{{ end }} {{ with $summary }}

{{ . }}

{{ end }} {{ with $keywords }}

{{ range $i, $term := . -}} {{- $kind := false -}} {{- if in $categories $term -}} {{- $kind = "category" -}} {{- else -}} {{- $kind = "tag" -}} {{- end -}} {{- if $normal -}} {{- if gt $i 0 }} · {{ end -}} {{ .LinkTitle }} {{- else -}} {{- if gt $i 0 }} {{ end -}} {{ .LinkTitle }} {{- end -}} {{- end }}

{{ end }} {{ with $series }}

{{ range $i, $series := . -}} {{- if gt $i 0 }} · {{ end -}} {{ .LinkTitle }} {{- end }}

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

{{ range $i, $author := . -}} {{- if gt $i 0 }} · {{ end -}} {{ .LinkTitle }} {{- end }}

{{ end }} {{ with $date }}

{{ end }} {{ with $words }}

{{ . }} {{ i18n "paige_words" . }}

{{ end }} {{ with $time }}

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

{{ end }}