{{- define "singlebody" -}} {{ $s := partialCached "scratch.html" . }} {{ $p := $.GetPage .Params.print }} {{ $scratch := $s.Get (printf "/%s" $p.File) }} {{ $currentDir := "" }} {{ with .File }} {{ $currentDir = .Dir }} {{ end }}
{{ partial "printsinglebody.html" $p }}
{{ $p.Content }}
{{ range $scratch.has_children }}
{{ $addS := len .Params.authors }} {{ range $n, $authorFile := .Params.authors }} {{ $author := $.GetPage (printf "/author/%s" $authorFile) }} {{ if eq $n 0 }}
author{{ with (gt $addS 1) }}s{{ end }}⁄{{ $author.Title }} {{ else }} , {{ $author.Title }} {{ end }} {{ end }} {{ with .Params.authors }}
{{ end }} {{ $tit := .Title }} {{ if gt (len .Title) 54 }} {{ $tit = printf "%s…" (substr .Title 0 50) }} {{ end }}
{{ index $scratch.crust 0 }}⁄{{ $tit }}
{{ partial "printsinglebody.html" . }} {{ .Content }} {{ end }} {{ range where $.Site.RegularPages "Section" "in" (slice "author" "editor") }}
{{ index $scratch.mantle 0 }}⁄{{ $p.Title }}
{{ substr .File.Dir 0 -1 }}⁄{{ .Title }}
{{ .Content }} {{ if in .Page.Site.Params.sandpointsMentionedIn (substr .File.Dir 0 -1) }} {{ $ss := $s.Get (printf "/%s" .File) }}
{{ with $ss }}
mentioned in⁄
{{ end }}
{{ range $ss.backlinks }} {{ end }}
{{ end }} {{ end }} {{- end -}}