mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 14:22:11 -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
|
rssBase = rssType.BaseName
|
||||||
} else {
|
} else {
|
||||||
// Remove in Hugo 0.22.
|
// Remove in Hugo 0.22.
|
||||||
|
if rssBase != "index.xml" {
|
||||||
helpers.Deprecated("Site config", "rssURI", "Set baseName in outputFormats.RSS", false)
|
helpers.Deprecated("Site config", "rssURI", "Set baseName in outputFormats.RSS", false)
|
||||||
|
}
|
||||||
// RSS has now a well defined media type, so strip any suffix provided
|
// RSS has now a well defined media type, so strip any suffix provided
|
||||||
rssBase = strings.TrimSuffix(rssBase, path.Ext(rssBase))
|
rssBase = strings.TrimSuffix(rssBase, path.Ext(rssBase))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue