diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-20 14:54:17 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 11:57:03 +0300 |
commit | 7e81971b46d36765af5d4e908f8ac282b2888e4b (patch) | |
tree | 5426d7a682d7530a6abb265868961b1dd2b97fda /hugolib | |
parent | f776af6c9b6c860dda3680e73c1b8994c2c00735 (diff) |
node to page: Don't repeat the RSS title if it is the same
Updates #2297
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/node_as_page_test.go | 4 |
1 files changed, 2 insertions, 2 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!", "<rss") + assertFileContent(t, filepath.Join("public", "customrss.xml"), false, "Hugo Rocks!", "<rss") assertFileContent(t, filepath.Join("public", "sect1", "customrss.xml"), false, "Recent content in Sect1s on Hugo Rocks!", "<rss") assertFileContent(t, filepath.Join("public", "sect2", "customrss.xml"), false, "Recent content in Sect2s on Hugo Rocks!", "<rss") assertFileContent(t, filepath.Join("public", "categories", "hugo", "customrss.xml"), false, "Recent content in Hugo on Hugo Rocks!", "<rss") @@ -310,7 +310,7 @@ title = "Hugo in English" "Section Title: Section2") // RSS - assertFileContent(t, filepath.Join("public", "nn", "customrss.xml"), true, "Recent content in Hugo på norsk on Hugo på norsk", "<rss") + assertFileContent(t, filepath.Join("public", "nn", "customrss.xml"), true, "Hugo på norsk", "<rss") assertFileContent(t, filepath.Join("public", "nn", "sect1", "customrss.xml"), true, "Recent content in Sect1s on Hugo på norsk", "<rss") assertFileContent(t, filepath.Join("public", "nn", "sect2", "customrss.xml"), true, "Recent content in Sect2s on Hugo på norsk", "<rss") assertFileContent(t, filepath.Join("public", "nn", "categories", "hugo", "customrss.xml"), true, "Recent content in Hugo on Hugo på norsk", "<rss") |