mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
1d18eb0574
commit
6c6a6c87ec
1 changed files with 4 additions and 0 deletions
|
@ -583,6 +583,8 @@ func (s *siteRefLinker) refLink(ref string, source interface{}, relative bool, o
|
|||
|
||||
// Ref will give an absolute URL to ref in the given Page.
|
||||
func (s *SiteInfo) Ref(ref string, page *Page, options ...string) (string, error) {
|
||||
// Remove in Hugo 0.53
|
||||
helpers.Deprecated("Site", ".Ref", "Use .Site.GetPage", false)
|
||||
outputFormat := ""
|
||||
if len(options) > 0 {
|
||||
outputFormat = options[0]
|
||||
|
@ -593,6 +595,8 @@ func (s *SiteInfo) Ref(ref string, page *Page, options ...string) (string, error
|
|||
|
||||
// RelRef will give an relative URL to ref in the given Page.
|
||||
func (s *SiteInfo) RelRef(ref string, page *Page, options ...string) (string, error) {
|
||||
// Remove in Hugo 0.53
|
||||
helpers.Deprecated("Site", ".RelRef", "Use .Site.GetPage", false)
|
||||
outputFormat := ""
|
||||
if len(options) > 0 {
|
||||
outputFormat = options[0]
|
||||
|
|
Loading…
Reference in a new issue