mirror of
https://github.com/papercss/papercss
synced 2024-05-10 17:56:45 +02:00
13 lines
440 B
Plaintext
13 lines
440 B
Plaintext
{{- $title := ( .Title ) -}}
|
|
{{- $siteTitle := ( .Site.Title ) -}}
|
|
{{- $title404 := ( .Site.Params.info.title404 | default $title ) -}}
|
|
{{- $sep := ( .Site.Params.seo.titleSeparator | default "•" ) -}}
|
|
|
|
{{- if .IsHome -}}
|
|
{{ print $siteTitle " " $sep " " $.Site.Params.info.description }}
|
|
{{- else if eq .Kind "404" -}}
|
|
{{ $title404 }} {{ $sep }} {{ $siteTitle }}
|
|
{{- else -}}
|
|
{{ $title }} {{ $sep }} {{ $siteTitle }}
|
|
{{- end -}}
|