{{ define "recurse-toc" }} {{ end }} {{ define "recurse-content" }} {{ $s := .section }} {{ $psid := .psid }} {{ $pages := (union $s.Pages $s.Sections).ByWeight }} {{ $subSection := 1 }} {{ $breakOnWordCount := default 50 ($s.Site.Param "print.section_break_wordcount") }} {{ $doPageBreak := gt (countwords $s.Content) $breakOnWordCount }} {{ range where $pages ".Params.no_print" "!=" true }} {{ $sid := printf "%s%d" $psid $subSection }} {{ $subSection = add $subSection 1 }} {{ $params := dict "Page" . "PageNum" $sid "DoPageBreak" $doPageBreak }} {{ partial "print/content.html" $params }} {{ if .IsSection }} {{ template "recurse-content" (dict "section" . "psid" (printf "%s." $sid) ) }} {{ end }} {{ $doPageBreak = true }} {{ end }} {{ end }}
{{ "Print" }}
{{ "Back to Docs Hub" }}
{{ partial "print/page-heading.html" . }}
{{ .Content }}
{{ template "recurse-content" (dict "section" .CurrentSection "psid" "") }}