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
This commit is contained in:
Kartik Singhal
2014-11-16 20:11:07 +05:30
committed by spf13
parent a07dd5650e
commit 596d679386
3 changed files with 23 additions and 23 deletions

View File

@@ -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)