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