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

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

{{- with $title := $.Site.Title -}}
  {{- if (in (slice
      "home"
      "taxonomy"
      "term"
    ) $.Page.Kind)
  -}}
    {{ $title }}
  {{- else -}}
    {{ $author.title }}
  {{- end -}}
{{- end -}}