{{ $page := . }} {{ $authors := partial "paige/authors.html" $page }} {{ $categories := $page.GetTerms "categories" }} {{ $date := and $page.IsPage $page.PublishDate }} {{ $dateformat := $page.Param "paige.date_format" | default ":date_long" }} {{ $description := $page.Description | markdownify }} {{ $link := $page.Params.link }} {{ $readingtime := $page.ReadingTime }} {{ $series := $page.GetTerms "series" }} {{ $tags := $page.GetTerms "tags" }} {{ $textkeywords := eq ($page.Param "paige.keyword_style" | default "text") "text" }} {{ $title := $page.Title | markdownify }} {{ $keywords := sort (append $categories $tags) "Title" }}
{{ with $title }}

{{ if $link }}{{ . }}{{ else }}{{ . }}{{ end }}

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

{{ . }}

{{ end }} {{ if or $authors $date $keywords $readingtime $series }}
{{ with $keywords }}

{{ range $i, $term := . -}} {{- if $textkeywords -}} {{- if gt $i 0 }} · {{ end -}} {{ .Title }} {{- else -}} {{- if gt $i 0 }} {{ end -}} {{ .Title }} {{- end -}} {{- end }}

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

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

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

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

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

{{ end }} {{ with $readingtime }}

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

{{ end }}
{{ end }} {{ with $page.Param "paige.alert" }} {{ end }} {{ if and $page.Content (ne $page.TableOfContents ``) }}
{{ $page.TableOfContents }}
{{ end }}