From d95c1bb0ded242611b3689e295770b24836a0db4 Mon Sep 17 00:00:00 2001 From: Sami Ahmed Siddiqui Date: Wed, 17 Apr 2024 12:46:12 +0500 Subject: [PATCH] Add parameter to exclude site title from the Title attribute --- layouts/partials/head.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 44eb901593..d589d7107d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,6 +15,8 @@ {{- if .IsHome -}} {{ .Site.Title -}} + {{ else if .Site.Params.excludeSiteTitle -}} + {{ with .Title }}{{ . }}{{ end -}} {{ else -}} {{ with .Title }}{{ . }} | {{ end -}} {{ .Site.Title -}}