mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
@@ -149,7 +149,7 @@ func generateDeprecatedWrappers(c *codegen.Inspector) error {
|
|||||||
"LanguagePrefix": "Use .Site.LanguagePrefix.",
|
"LanguagePrefix": "Use .Site.LanguagePrefix.",
|
||||||
"GetParam": "Use .Param or .Params.myParam.",
|
"GetParam": "Use .Param or .Params.myParam.",
|
||||||
"RSSLink": `Use the Output Format's link, e.g. something like:
|
"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",
|
"URL": "Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ func (p *pageDeprecated) BaseFileName() string {
|
|||||||
return p.p.BaseFileName()
|
return p.p.BaseFileName()
|
||||||
}
|
}
|
||||||
func (p *pageDeprecated) RSSLink() template.URL {
|
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()
|
return p.p.RSSLink()
|
||||||
}
|
}
|
||||||
func (p *pageDeprecated) TranslationBaseName() string {
|
func (p *pageDeprecated) TranslationBaseName() string {
|
||||||
|
Reference in New Issue
Block a user