{{ $s := partialCached "scratch.html" . }} {{ $currentNode := . }} {{ $currentDir := "" }} {{ with .File }} {{ $currentDir = .Dir }} {{ end }} {{ $currentFile := (printf "/%s" .File) }} {{ $scratch := $s.Get $currentFile }}
{{ substr $currentDir 0 -1 }}⁄{{ .Title }}
{{ if ne (trim .Page.TableOfContents "\n") "" }} {{ .Page.TableOfContents }} {{ end }}
{{ $closeDivs := false }} {{ $sandnamePlural := (slice) }} {{ range $k, $v := $.Site.Data.sandpointsnamegraph }} {{ $sandnamePlural = $sandnamePlural | append $v }} {{ end }} {{ $paramsKeys := (slice) }} {{ range $k, $v := $currentNode.Params }} {{ $paramsKeys = $paramsKeys | append $k }} {{ end }} {{ $mentions := intersect $paramsKeys $sandnamePlural }} {{ range $mention := $mentions }} {{ range $k, $m := index $currentNode.Params $mention }} {{ $mentionLink := printf "/%s/%s" (substr $mention 0 -1) $m }} {{- with $.GetPage $mentionLink -}} {{ with not $k }} {{ $closeDivs = true }}
{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ substr $mention 0 -1 }}{{ end }}{{ end }}⁄
{{ end }} {{ end }} {{ end }} {{ end }} {{- with $closeDivs -}}
{{ end }} {{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
{{ with $scratch.has }}
has {{ $scratch.has }}⁄
{{ end }}
{{ range $scratch.has_children }} {{ $authors := "" }} {{ range $k, $authorLink := .Params.authors }} {{ $authorPage := $.GetPage (printf "/author/%s" $authorLink) }} {{ $prefix := ", " }} {{ with not $k }} {{ $prefix = "" }} {{ end }} {{ $authors = printf "%s%s" $prefix $authorPage.Title }} {{ end }} {{ end }}
{{ end }} {{ if eq $scratch.depth "crust" }}
in {{ index $scratch.in 1 }}⁄
{{ range $scratch.is_in }} {{ end }}
{{ end }}
{{ with .Page.Params.abstract }}
abstract⁄{{ . | $.Page.RenderString | htmlUnescape | safeHTML }}
{{ end }} {{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}
keywords⁄{{- $v -}}{{- else -}}, {{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}
{{- end -}}