From: Bjørn Erik Pedersen Date: Sun, 20 Nov 2016 11:54:17 +0000 (+0100) Subject: node to page: Don't repeat the RSS title if it is the same X-Git-Tag: v0.18~85 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e81971b46d36765af5d4e908f8ac282b2888e4b;p=brevno-suite%2Fhugo node to page: Don't repeat the RSS title if it is the same Updates #2297 --- diff --git a/hugolib/node_as_page_test.go b/hugolib/node_as_page_test.go index a4fd7830..9b0eb88a 100644 --- a/hugolib/node_as_page_test.go +++ b/hugolib/node_as_page_test.go @@ -220,7 +220,7 @@ func TestNodesWithNoContentFile(t *testing.T) { ) // RSS - assertFileContent(t, filepath.Join("public", "customrss.xml"), false, "Recent content in Hugo Rocks! on Hugo Rocks!", " - {{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}