aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/base-title.html
blob: b34355d768ddf6e760159d472a1e304aa3416177 (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 .Params.author .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 -}}