ref: cfd3af8e691119461effa4385251b9d3818e2291
parent: 4c6fec56f1e3d22eeaa52e96eaf1f18ef3519830
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Apr 10 13:54:55 EDT 2017
hugolib: Only show rssUri deprecation WARNING if it is actually set Fixes #3319
--- a/hugolib/site_output.go
+++ b/hugolib/site_output.go
@@ -80,7 +80,9 @@
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))
}