mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
27a8049da7
commit
3b86b4a9f5
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue