shithub: hugo

Download patch

ref: 9ec00725b7685699a38d6fc926fdf0c5f15cc3e7
parent: cfd3af8e691119461effa4385251b9d3818e2291
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Apr 10 17:26:55 EDT 2017

hugolib: Final fix of rssURI deprecation

Fixes #3319

--- a/hugolib/site_output.go
+++ b/hugolib/site_output.go
@@ -76,13 +76,11 @@
 			rssType := output.RSSFormat
 
 			rssBase := cfg.GetString("rssURI")
-			if rssBase == "" {
+			if rssBase == "" || rssBase == "index.xml" {
 				rssBase = rssType.BaseName
 			} else {
 				// 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
 				rssBase = strings.TrimSuffix(rssBase, path.Ext(rssBase))
 			}