diff --git a/layouts/partials/paige/page-header.html b/layouts/partials/paige/page-header.html index b991a9c0..2fbd5ae3 100644 --- a/layouts/partials/paige/page-header.html +++ b/layouts/partials/paige/page-header.html @@ -21,109 +21,107 @@ {{ $keywords := sort (append $categories $tags) "LinkTitle" | and ($page.Param "paige.pages.disable_keywords" | not) }} {{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc $words }} -
-
- {{ partial "paige/func-include.html" (dict "name" "page-header-first%s.html" "page" $page) | safeHTML }} - - {{ with $title }} -

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

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

{{ . }}

- {{ end }} - - {{ if or $authors $date $keywords $time $series }} -
- {{ with $keywords }} -

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

+ {{ partial "paige/func-include.html" (dict "name" "page-header-first%s.html" "page" $page) | safeHTML }} + + {{ with $title }} +

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

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

{{ . }}

+ {{ end }} + + {{ if or $authors $date $keywords $time $series }} +
+ {{ with $keywords }} +

+ {{ range $i, $term := . }} + {{ $kind := false }} + + {{ if in $categories $term }} + {{ $kind = "category" }} + {{ else }} + {{ $kind = "tag" }} {{ end }} -

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

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

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

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

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

- -

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

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

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

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

- {{ end }} -
- {{ end }} - - {{ with $alert }} - - {{ end }} - - {{ if $toc }} -
-
- {{ $page.TableOfContents }} -
+ {{ end }} +

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

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

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

+ {{ range $i, $author := . }} + {{ if gt $i 0 }} · {{ end }} + + {{ if .RelPermalink }} + + {{ else }} + + {{ end }} + {{ end }} +

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

+ +

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

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

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

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

+ {{ end }} +
+ {{ end }} + + {{ with $alert }} + + {{ end }} + + {{ if $toc }} +
+
+ {{ $page.TableOfContents }}
- {{ end }} +
+ {{ end }} - {{ partial "paige/func-include.html" (dict "name" "page-header-last%s.html" "page" $page) | safeHTML }} -
+ {{ partial "paige/func-include.html" (dict "name" "page-header-last%s.html" "page" $page) | safeHTML }}
{{ end }}