d }}
{{ 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" . "P