{{ define "main" }} {{$currentNode := . }} {{ $graphOptions := newScratch }} {{ range $k, $v := $.Site.Data.sandpointsnamegraph }} {{ if eq (substr $currentNode.File.Dir 0 -1) $k }} {{ $graphOptions.Set "plural" (index $v "plural") }} {{ $graphOptions.Set "depth" (index $v "depth") }} {{ with index $v "in" }} {{ $graphOptions.Set "in" (index $v "in") }} {{ end }} {{ with index $v "has" }} {{ $graphOptions.Set "has" (index $v "has") }} {{ end }} {{ end }} {{ end }}