aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-04-10 17:54:55 +0200
committerBjørn Erik Pedersen <[email protected]>2017-04-10 17:54:55 +0200
commitcfd3af8e691119461effa4385251b9d3818e2291 (patch)
treee9b0d3c3bedc5f853112db800ec4bb14bb9a1f77
parent4c6fec56f1e3d22eeaa52e96eaf1f18ef3519830 (diff)
downloadhugo-cfd3af8e691119461effa4385251b9d3818e2291.tar.gz
hugo-cfd3af8e691119461effa4385251b9d3818e2291.zip
hugolib: Only show rssUri deprecation WARNING if it is actually set
Fixes #3319
-rw-r--r--hugolib/site_output.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/site_output.go b/hugolib/site_output.go
index f321848e3..56009285d 100644
--- a/hugolib/site_output.go
+++ b/hugolib/site_output.go
@@ -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))
}