aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/site-title.html
blob: ed09ec32b89c9502b7061ce66def5690dca0146c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }}

{{- if not (eq .Title $.Site.Title) -}}
  {{- with or .Title .Summary -}}
    {{ . }} —
  {{ end }}
{{- end -}}

{{- with $.Site.Title -}}
  {{ if $.IsHome -}}
    {{ . }}
  {{- else -}}
    {{ $author.blogtitle }}
  {{- end -}}
{{- end -}}