{{- $currentPage := .Page -}} {{- $u := urls.Parse .Destination -}} {{- if not $u.Scheme -}} {{- with site.GetPage .Destination -}} {{- $backlinks := .Store.Get "backlinks" | default slice -}} {{- $backlinks := $backlinks|append $currentPage.RelPermalink -}} {{- .Store.Set "backlinks" ($backlinks|uniq) -}} {{- end -}} {{- end -}} {{- with .Text }}{{ . }}{{ end -}} {{- /* chomp trailing newline */ -}}