mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugolib: Only show rssUri deprecation WARNING if it is actually set
Fixes #3319
This commit is contained in:
parent
4c6fec56f1
commit
cfd3af8e69
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue