diff options
author | Kartik Singhal <kartiksinghal@gmail.com> | 2014-11-16 20:11:07 +0530 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-11-17 18:55:40 -0500 |
commit | 596d67938668126d49cde7b00dc9f345f0f5032e (patch) | |
tree | e3204f112cf72f9eae8ea7abc293c8c08536d4e8 /hugolib/rss_test.go | |
parent | a07dd5650e68ac8166ce8838498672c34406cb20 (diff) |
Various fixes in RSS feed generation
- Prevent `.xml` generation for root section
- Remove redundant check for DisableRSS
- Fix permalinks for rel="alternate"
- Rename generated xml file to <type>/index.xml
- Add required description element in default template
- Make default RSS template validate on w3c (timezone format is still an issue)
Conflicts:
hugolib/site.go
Diffstat (limited to 'hugolib/rss_test.go')
-rw-r--r-- | hugolib/rss_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/rss_test.go b/hugolib/rss_test.go index 11c29cb32..497c0325a 100644 --- a/hugolib/rss_test.go +++ b/hugolib/rss_test.go @@ -56,10 +56,10 @@ func TestRSSOutput(t *testing.T) { t.Fatalf("Unable to RenderHomePage: %s", err) } - file, err := hugofs.DestinationFS.Open("rss.xml") + file, err := hugofs.DestinationFS.Open("index.xml") if err != nil { - t.Fatalf("Unable to locate: %s", "rss.xml") + t.Fatalf("Unable to locate: %s", "index.xml") } rss := helpers.ReaderToBytes(file) |