mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
27
themes/minimo/layouts/partials/data/title
Normal file
27
themes/minimo/layouts/partials/data/title
Normal file
@@ -0,0 +1,27 @@
|
||||
{{- $title := ( .Title ) -}}
|
||||
{{- $siteTitle := ( .Site.Title ) -}}
|
||||
{{- $sep := ( .Site.Params.seo.titleSeparator | default "•" ) -}}
|
||||
{{- $title404 := ( .Site.Params.info.title404 | default $title ) -}}
|
||||
|
||||
{{- if .IsHome -}}
|
||||
{{ $siteTitle }}
|
||||
{{- else if eq .Kind "404" -}}
|
||||
{{ $title404 }} {{ $sep }} {{ $siteTitle }}
|
||||
{{- else if eq .Kind "term" -}}
|
||||
{{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) -}}
|
||||
{{- print ": " -}}
|
||||
{{- if eq .Data.Singular "author" -}}
|
||||
{{- partial "data/author/displayName" . -}}
|
||||
{{- else -}}
|
||||
{{- $title -}}
|
||||
{{- end -}}
|
||||
{{- print " " $sep " " $siteTitle -}}
|
||||
{{- else if ( or .IsNode ( eq .Section "page" ) ) -}}
|
||||
{{ $title }} {{ $sep }} {{ $siteTitle }}
|
||||
{{- else -}}
|
||||
{{- if .Params.authors -}}
|
||||
{{ $title }} {{ $sep }} {{ partial "data/author/displayName" . }}
|
||||
{{- else -}}
|
||||
{{ $title }} {{ $sep }} {{ $siteTitle }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user