From 0542fed42ee34d2f10811d1ab610720204761276 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Mon, 26 Jan 2026 10:39:34 +0100 Subject: [PATCH] fix: avoid site name appearing twice in the title (#1240) --- layouts/_partials/data/title.html | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/layouts/_partials/data/title.html b/layouts/_partials/data/title.html index cc4d4e8..0e56f34 100644 --- a/layouts/_partials/data/title.html +++ b/layouts/_partials/data/title.html @@ -4,17 +4,11 @@ {{- $title := slice -}} -{{- if $pageTitle }} - {{- $title = slice $pageTitle -}} -{{- end -}} - {{- if and $paginator $paginator.HasPrev -}} {{ $title = $title | append (printf "Page %d" $paginator.PageNumber) }} -{{- end -}} - -{{- if not .IsPage -}} - {{ $title = $title | append $siteTitle }} {{- end -}} +{{- $title = $title | append (default $siteTitle $pageTitle) -}} + {{ return delimit $title " - " }} \ No newline at end of file