Skip to content

Commit cfd3af8

Browse files
committed
hugolib: Only show rssUri deprecation WARNING if it is actually set
Fixes #3319
1 parent 4c6fec5 commit cfd3af8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎hugolib/site_output.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ func createDefaultOutputFormats(cfg config.Provider) (map[string]output.Formats,
8080
rssBase = rssType.BaseName
8181
} else {
8282
// Remove in Hugo 0.22.
83-
helpers.Deprecated("Site config", "rssURI", "Set baseName in outputFormats.RSS", false)
83+
if rssBase != "index.xml" {
84+
helpers.Deprecated("Site config", "rssURI", "Set baseName in outputFormats.RSS", false)
85+
}
8486
// RSS has now a well defined media type, so strip any suffix provided
8587
rssBase = strings.TrimSuffix(rssBase, path.Ext(rssBase))
8688
}

0 commit comments

Comments
 (0)