Skip to content

Commit

Permalink
hugolib: Only show rssUri deprecation WARNING if it is actually set
Browse files Browse the repository at this point in the history
Fixes #3319
  • Loading branch information
bep committed Apr 10, 2017
1 parent 4c6fec5 commit cfd3af8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hugolib/site_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit cfd3af8

Please sign in to comment.