append site title to page titles

This commit is contained in:
Amolith 2023-01-20 18:52:01 -05:00
parent e0ed3c4ea4
commit fcda00b823
Signed by: Amolith
GPG Key ID: 8AE30347CE28D101
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@
{{ block "title" . }}
<title>
{{ if .IsHome }}
{{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }}
{{ $.Site.Title }}
{{ else }}
{{ .Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }}
{{ .Title }} — {{ $.Site.Title }}
{{ end }}
</title>
{{ end }}