mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-30 15:40:05 +03: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.",
|
"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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue