From 3b86b4a9f5ce010c9714d813d5b8ecddda22c69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 9 Apr 2019 16:47:29 +0200 Subject: [PATCH] resources/page: Fix .RSSLinke deprecation message Closes #4427 --- resources/page/page_generate/generate_page_wrappers.go | 2 +- resources/page/page_wrappers.autogen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/page/page_generate/generate_page_wrappers.go b/resources/page/page_generate/generate_page_wrappers.go index 739d7a00eb5..6d421c35694 100644 --- a/resources/page/page_generate/generate_page_wrappers.go +++ b/resources/page/page_generate/generate_page_wrappers.go @@ -149,7 +149,7 @@ func generateDeprecatedWrappers(c *codegen.Inspector) error { "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", } diff --git a/resources/page/page_wrappers.autogen.go b/resources/page/page_wrappers.autogen.go index c08da3e8bb6..d7fcb520109 100644 --- a/resources/page/page_wrappers.autogen.go +++ b/resources/page/page_wrappers.autogen.go @@ -72,7 +72,7 @@ func (p *pageDeprecated) BaseFileName() string { 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 {