1
0
mirror of https://github.com/playit-cloud/support-docs.git synced 2025-02-23 07:36:09 +00:00
Patrick Lorio 87c8e8c71c Initial commit
2022-08-29 13:18:51 -07:00

20 lines
635 B
Plaintext

{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- $sep := ( .Site.Params.SEO.titleSeparator | default "-" ) -}}
{{- $title404 := ( $title ) -}}
{{- if .IsHome -}}
{{ $siteTitle }}
{{- else if eq .Kind "404" -}}
{{ $title404 }} {{ $sep }} {{ $siteTitle }}
{{- else if eq .Kind "taxonomy" -}}
{{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) | title -}}
{{- print ": " -}}
{{- $title -}}
{{- print " " $sep " " $siteTitle -}}
{{- else if ( or .IsNode ( eq .Section "page" ) ) -}}
{{ $title }} {{ $sep }} {{ $siteTitle }}
{{- else -}}
{{ $title }} {{ $sep }} {{ $siteTitle }}
{{- end -}}