// 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]
// 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]