{{ $tpl := printf "print/content-%s.html" .Page.Type }} {{ if templates.Exists (printf "partials/%s" $tpl) }} {{ partial $tpl . }} {{ else -}} {{ $break := cond .DoPageBreak "page-break-before: always" "" -}}