diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-01 21:08:12 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-01 21:08:12 +0100 |
commit | 6c6a6c87ec2b5ac7342e268ab47861429230f7f4 (patch) | |
tree | d0f4f489a7571a92a5fcaaa31de7b48c6d70754b /hugolib | |
parent | 1d18eb0574a57c3e9f468659d076a666a3dd76f2 (diff) |
hugolib: Deprecate .Site.Ref and .Site.RelRef
Fixes #5386
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index d0d84dc60..e58dd39b2 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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] |