diff --git a/layouts/partials/data/title.html b/layouts/partials/data/title.html index 91db60c..85a7bc7 100644 --- a/layouts/partials/data/title.html +++ b/layouts/partials/data/title.html @@ -1,16 +1,38 @@ {{- $title := .Title -}} {{- $siteTitle := .Site.Title -}} -{{- $authorName := .Site.Author.name -}} {{- if .IsHome -}} + + + {{ $pages := where .Site.RegularPages "Section" "in" .Site.Params.mainSections }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} {{ $filtered := ($pages | intersect $notHidden) }} {{ $pag := .Paginate ($filtered) }} - {{ if .Paginator.HasPrev }}{{ .Paginator }} - {{ end }}{{ $siteTitle }} + + {{ if .Paginator.HasPrev }} + + {{ $title = printf "%s - %s" .Paginator $siteTitle }} + {{ else }} + {{ $title = $siteTitle}} + {{ end }} {{- else if eq .Kind "term" -}} - {{- $pag := .Paginate (where .Data.Pages "Type" "post") -}} - {{ title .Data.Singular }}: {{ $title }}{{ if .Paginator.HasPrev }} - {{ .Paginator }}{{ end }} - {{ $siteTitle }} -{{- else -}} - {{- $title -}} -{{- end -}} \ No newline at end of file + + + + {{ $notHidden := where .Pages "Params.hidden" "!=" true }} + {{ $pag := .Paginate ($notHidden) }} + + + {{ $title = slice (title .Data.Singular) ": " $title }} + + {{ if .Paginator.HasPrev }} + + {{ $title = $title | append " - " .Paginator }} + {{ end }} + + {{ $title = $title | append " - " $siteTitle }} + {{ $title = delimit $title "" }} +{{- end -}} + +{{ return $title }} \ No newline at end of file diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index 894c0bb..eb9cc0f 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -2,8 +2,9 @@ - -