ref: 3b86b4a9f5ce010c9714d813d5b8ecddda22c69f
parent: 27a8049da7996b703d02083182b84a002eae2599
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Apr 9 12:47:29 EDT 2019
resources/page: Fix .RSSLinke deprecation message Closes #4427
--- a/resources/page/page_generate/generate_page_wrappers.go
+++ b/resources/page/page_generate/generate_page_wrappers.go
@@ -149,7 +149,7 @@
"LanguagePrefix": "Use .Site.LanguagePrefix.",
"GetParam": "Use .Param or .Params.myParam.",
"RSSLink": `Use the Output Format's link, e.g. something like:
- {{ with .OutputFormats.Get "RSS" }}{{ . RelPermalink }}{{ end }}`,
+ {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}`,
"URL": "Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url",
}
--- a/resources/page/page_wrappers.autogen.go
+++ b/resources/page/page_wrappers.autogen.go
@@ -72,7 +72,7 @@
return p.p.BaseFileName()
}
func (p *pageDeprecated) RSSLink() template.URL {
- helpers.Deprecated("Page", ".RSSLink", "Use the Output Format's link, e.g. something like: \n {{ with .OutputFormats.Get \"RSS\" }}{{ . RelPermalink }}{{ end }}", false)
+ helpers.Deprecated("Page", ".RSSLink", "Use the Output Format's link, e.g. something like: \n {{ with .OutputFormats.Get \"RSS\" }}{{ .RelPermalink }}{{ end }}", false)
return p.p.RSSLink()
}
func (p *pageDeprecated) TranslationBaseName() string {