From 625d3741359e199a736885a477b61a359752458a Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Mon, 16 Oct 2023 13:14:38 -0400 Subject: [PATCH] Dynamic site title --- themes/v2/layouts/partials/head.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/v2/layouts/partials/head.html b/themes/v2/layouts/partials/head.html index 3d12892..5ebca2d 100644 --- a/themes/v2/layouts/partials/head.html +++ b/themes/v2/layouts/partials/head.html @@ -1,6 +1,12 @@ - {{ .Site.Title }} + + {{- if .Page.IsHome -}} + {{ .Site.Title }} + {{- else -}} + {{ .Title }} – {{ .Site.Title }} + {{- end -}} + {{ $css := resources.Get "css/style.scss" | toCSS | minify | fingerprint }}