Permalink
Browse files

hugolib: Only show rssUri deprecation WARNING if it is actually set

Fixes #3319
  • Loading branch information...
bep committed Apr 10, 2017
1 parent 4c6fec5 commit cfd3af8e691119461effa4385251b9d3818e2291
Showing with 3 additions and 1 deletion.
  1. +3 −1 hugolib/site_output.go
View
@@ -80,7 +80,9 @@ func createDefaultOutputFormats(cfg config.Provider) (map[string]output.Formats,
rssBase = rssType.BaseName
} else {
// Remove in Hugo 0.22.
helpers.Deprecated("Site config", "rssURI", "Set baseName in outputFormats.RSS", false)
if rssBase != "index.xml" {
helpers.Deprecated("Site config", "rssURI", "Set baseName in outputFormats.RSS", false)
}
// RSS has now a well defined media type, so strip any suffix provided
rssBase = strings.TrimSuffix(rssBase, path.Ext(rssBase))
}

0 comments on commit cfd3af8

Please sign in to comment.