From f5078a1802ad1bd7e7d0106583fbb0d6469b42ad Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Mon, 23 Mar 2020 20:26:56 +0000 Subject: [PATCH] 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 +