From 7e81971b46d36765af5d4e908f8ac282b2888e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 20 Nov 2016 12:54:17 +0100 Subject: [PATCH] node to page: Don't repeat the RSS title if it is the same Updates #2297 --- hugolib/node_as_page_test.go | 4 ++-- tpl/template_embedded.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hugolib/node_as_page_test.go b/hugolib/node_as_page_test.go index a4fd7830b..9b0eb88a1 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 }}