{{- $ref := relref . (.Get "ref") }} {{- $path := (index (split (.Get "ref") "#") 0) }} {{- $anchor := (index (split (.Get "ref") "#") 1)}} {{- $page := .Site.GetPage $path -}} {{- with $page -}} {{- end -}}