{{- define "singlebody" -}} {{ $cssOutput := "" }} {{ $cssHashes := "" }} {{ $s := partialCached "scratch.html" . }} {{ $p := $.GetPage .Params.print }} {{ $scratch := $s.Get (printf "/%s" $p.File) }} {{ $authorsPages := (slice) }} {{ with $p.Params.authors }} {{ range $n, $authorFile := . }} {{ $author := $.GetPage (printf "/author/%s" $authorFile) }} {{ $authorsPages = (uniq $authorsPages) | append $author }} {{ end }} {{ end }} {{ $editorsPages := (slice) }} {{ with $p.Params.editors }} {{ range $n, $editorFile := . }} {{ $editor := $.GetPage (printf "/editor/%s" $editorFile) }} {{ $editorsPages = (uniq $editorsPages) | append $editor }} {{ end }} {{ end }} {{ $currentDir := "" }} {{ with .File }} {{ $currentDir = .Dir }} {{ end }}