diff --git a/layouts/partials/paige/page-header.html b/layouts/partials/paige/page-header.html index 157ceb19..3ec1f66a 100644 --- a/layouts/partials/paige/page-header.html +++ b/layouts/partials/paige/page-header.html @@ -1,6 +1,76 @@ {{ $page := . }} -{{ partial "paige/page-metadata.html" $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 }} + +
{{ . }}
+ {{ end }} + + {{ if or $authors $categories $date $readingtime $series $tags }} ++ {{ range $i, $term := sort (append $categories $tags) "Title" -}} + {{- 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 }} - - {{ if or $authors $categories $date $readingtime $series $tags }} -- {{ range $i, $term := sort (append $categories $tags) "Title" -}} - {{- 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 }} -