{{ $s := partialCached "scratch.html" . }} {{ $currentNode := . }} {{ $currentDir := "" }} {{ with .File }} {{ $currentDir = .Dir }} {{ end }} {{ $currentFile := (printf "/%s" .File) }} {{ $scratch := $s.Get $currentFile }} {{ if eq hugo.Environment "preview" }} {{- $gitUrl := .Site.Params.giturl -}}
edit_this add_new_{{ $scratch.mantle }} add_new_{{ $scratch.crust }} publish ?
{{ end }}