From 4257ec0471e91a952aa897bf7cccf0dd2608173b Mon Sep 17 00:00:00 2001 From: matcornic Date: Sat, 25 Mar 2017 18:14:50 +0100 Subject: [PATCH] fix: errors when building site with Hugo 0.20 --- layouts/404.html | 2 +- layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index b3622b13bf6..ba0ba4c5f92 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,7 +2,7 @@ - {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} + {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} {{ .Scratch.Get "title" }} {{ partial "style.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 030139c5764..7a34089eb4d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,7 @@ {{ .Hugo.Generator }} {{ partial "meta.html" . }} {{ partial "favicon.html" . }} - {{ .Scratch.Add "title" "" }}{{ if isset .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} + {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} {{ .Scratch.Get "title" }}