Hugo theme.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 rivejä
572 B

  1. {{- $title := .Title -}}
  2. {{- $siteTitle := .Site.Title -}}
  3. {{- $authorName := .Site.Author.name -}}
  4. {{- $sep := ( .Site.Params.SEO.titleSeparator | default "•" ) -}}
  5. {{- if .IsHome -}}
  6. {{ $siteTitle }}
  7. {{- else if eq .Kind "taxonomy" -}}
  8. {{ title .Data.Singular }}: {{ $title }} {{ $sep }} {{ $siteTitle }}
  9. {{- else if ( or .IsNode ( eq .Section "page" ) ) -}}
  10. {{ $title }} {{ $sep }} {{ $siteTitle }}
  11. {{- else -}}
  12. {{- with $authorName -}}
  13. {{ $title }} {{ $sep }} {{ . }}
  14. {{- else -}}
  15. {{ $title }} {{ $sep }} {{ $siteTitle }}
  16. {{- end -}}
  17. {{- end -}}