append site title to page titles
This commit is contained in:
parent
e0ed3c4ea4
commit
fcda00b823
|
@ -5,9 +5,9 @@
|
||||||
{{ block "title" . }}
|
{{ block "title" . }}
|
||||||
<title>
|
<title>
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }}
|
{{ $.Site.Title }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}
|
{{ .Title }} — {{ $.Site.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</title>
|
</title>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue