{{- $text_link := .Text -}}
{{- $sup := "" -}}
{{ $_ := newScratch }}
{{- range $k, $v := .Page.Site.Data.sandpointsnamegraph -}}
{{ $_.Add "triads" $k }}
{{- end -}}
{{ if strings.HasSuffix .Destination ".md" }}
{{ if in ($_.Get "triads") (index (split .Destination "/") 0) }}
{{ $destNoSpaces := strings.Replace .Destination "%20" "-" }}
{{ if $.Page.Site.GetPage $destNoSpaces }}
{{ $session := $.Page.Site.GetPage $destNoSpaces }}
{{ .Page.Scratch.Add "links" (slice $session) }}
{{- index (split $destNoSpaces "/") 0 -}}⁄{{- $text_link -}}
{{ else }}
MD ENTRY DOES NOT EXIST: {{ .Destination }}
{{ end }}
{{ else }}
TRIAD DOES NOT EXIST: {{ .Destination }}
{{ end }}
{{ else }}
{{ if strings.HasPrefix .Destination "http" }}
{{ $sup = "www" }}
{{ else if strings.HasPrefix .Destination "#" }}
{{ $sup = "§" }}
{{ end }}
{{ $sup }}⁄LINK
{{ end }}