From f5078a1802ad1bd7e7d0106583fbb0d6469b42ad Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Mon, 23 Mar 2020 20:26:56 +0000 Subject: [PATCH 1/2] Include page title if exists --- layouts/partials/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 998cb3d..fc98683 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,7 +4,7 @@ - {{ .Site.Title }} + {{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }} @@ -30,4 +30,4 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end }} {{ template "_internal/google_analytics.html" . }} - \ No newline at end of file + From 8bad7c8634e7545005e1b1144a19133b896489ff Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Mon, 23 Mar 2020 20:56:48 +0000 Subject: [PATCH 2/2] Don't duplicate the site title on homepage --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fc98683..b517fd1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,7 +4,7 @@ - {{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }} + {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}