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" . }} {{ 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 }}