From ee52a1b2ac0b3feaa0861921fcbda2dda49fe7a8 Mon Sep 17 00:00:00 2001 From: Nicolas Regez Date: Mon, 8 Apr 2019 21:10:33 +0200 Subject: Allow for empty page title in head partial --- 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 dbeea43..56e85a0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ - {{ .Page.Title }}{{ if .Site.Params.AppendSiteTitle }} | {{ .Site.Title }}{{ end }} + {{ if .Page.Title }}{{ .Page.Title }}{{ end }}{{ if and (.Page.Title) (.Site.Params.AppendSiteTitle) }} | {{ end }}{{ if .Site.Params.AppendSiteTitle }}{{ .Site.Title }}{{ end }} @@ -295,4 +295,4 @@ body { {{- partial "head_includes.html" . }} {{- partial "javascript_header.html" . }} - \ No newline at end of file + -- cgit v1.2.3