mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
hugolib: Only show rssUri deprecation WARNING if it is actually set
Fixes #3319
This commit is contained in:
1 parent
4c6fec56f1
commit
cfd3af8e69
1 file changed
+3
-1
@@ -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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user