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

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

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