diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-04-10 17:54:55 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-04-10 17:54:55 +0200 |
commit | cfd3af8e691119461effa4385251b9d3818e2291 (patch) | |
tree | e9b0d3c3bedc5f853112db800ec4bb14bb9a1f77 | |
parent | 4c6fec56f1e3d22eeaa52e96eaf1f18ef3519830 (diff) | |
download | hugo-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.go | 4 |
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)) } |