mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user