diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-25 17:46:09 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | 3cd97951f1cb6d7169a8a84a7b86984c05b2d35c (patch) | |
tree | 17adf86a0af091981ee5f8145db70cc251b4d994 /output/layout_test.go | |
parent | ee75e2999b66bd9f258a241c487b6677cf2fa071 (diff) |
hugolib, layout: Consolidate RSS template handling
Diffstat (limited to 'output/layout_test.go')
-rw-r--r-- | output/layout_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/output/layout_test.go b/output/layout_test.go index aa0657a36..ad9b65f2c 100644 --- a/output/layout_test.go +++ b/output/layout_test.go @@ -55,6 +55,15 @@ func TestLayout(t *testing.T) { []string{"myttype/mysubtype/mylayout.amp.html", "myttype/mysubtype/mylayout.html", "myttype/mylayout.amp.html"}}, {"Page with overridden layout", LayoutDescriptor{Kind: "page", Layout: "mylayout", Type: "myttype"}, false, "myotherlayout", ampType, []string{"myttype/myotherlayout.amp.html", "myttype/myotherlayout.html"}}, + // RSS + {"RSS Home with theme", LayoutDescriptor{Kind: "home"}, true, "", RSSType, + []string{"rss.xml", "_default/rss.xml", "theme/rss.xml", "theme/_default/rss.xml", "_internal/_default/rss.xml"}}, + {"RSS Section", LayoutDescriptor{Kind: "section", Section: "sect1"}, false, "", RSSType, + []string{"section/sect1.rss.xml", "_default/rss.xml", "rss.xml", "_internal/_default/rss.xml"}}, + {"RSS Taxonomy", LayoutDescriptor{Kind: "taxonomy", Section: "tag"}, false, "", RSSType, + []string{"taxonomy/tag.rss.xml", "_default/rss.xml", "rss.xml", "_internal/_default/rss.xml"}}, + {"RSS Taxonomy term", LayoutDescriptor{Kind: "taxonomyTerm", Section: "tag"}, false, "", RSSType, + []string{"taxonomy/tag.terms.rss.xml", "_default/rss.xml", "rss.xml", "_internal/_default/rss.xml"}}, } { t.Run(this.name, func(t *testing.T) { l := NewLayoutHandler(this.hasTheme) |