From 2cc499cb4be5d6519a1c92635c10b32618532439 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Thu, 3 May 2018 18:31:52 +0200 Subject: [PATCH] Always ensure there's a title (#53) --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index df4b26b..cdbb11a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -14,7 +14,7 @@ {{ .Hugo.Generator }} - {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} + {{ if and (not .IsHome) .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }} {{ with .Params.goimport }}{{ end }} {{ with .Params.gosource }}{{ end }}