summaryrefslogtreecommitdiff
path: root/layouts/_partials
diff options
context:
space:
mode:
authorNicholas Johnson <>2026-09-18 00:00:00 +0000
committerNicholas Johnson <>2026-09-19 16:06:44 -0400
commit7d240e17acc30398063991f7e2867a9938e19869c3dcc65f905d65e7d882ff0b (patch)
treed815798a2adcee8b874edb584f071477115663567b72754d80702b25fc2390b3 /layouts/_partials
parent4f22a1ee6092762ee116dc09b3cea66b181e3efffe22eb56037c6e41b11757d8 (diff)
downloadhugo-theme-journal-7d240e17acc30398063991f7e2867a9938e19869c3dcc65f905d65e7d882ff0b.tar.gz
hugo-theme-journal-7d240e17acc30398063991f7e2867a9938e19869c3dcc65f905d65e7d882ff0b.zip
Include the site title in page titles
Entry and taxonomy pages set the document title to the page title on its own, so a bookmark, a browser tab or a search result gave no indication of which site the page belonged to. Append the site title everywhere except the homepage, where the two are already the same. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
index 05e8eae..5a1f89a 100644
--- a/layouts/_partials/head.html
+++ b/layouts/_partials/head.html
@@ -21,5 +21,5 @@
{{ if (not (fileExists "static/favicon.ico")) }}
<link rel="icon" href="data:,">
{{- end }}
- <title>{{ .Title }}</title>
+ <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
</head> \ No newline at end of file