{{- define "print" -}} {{- $currentPage := . -}} {{- range $source := $currentPage.Params.print[0].render.static -}} {{- with site.GetPage (printf "%s" $source) -}} {{- $sourcePage := . -}} {{- partial "single-page-graph.html" . -}} {{- partial "page-header.html" . -}}
{{ $sourcePage.Section }}⁄{{ $sourcePage.Title }}
{{ $sourcePage.Content }}
{{- range $param := $currentPage.Params.print.iterate -}} {{- printf "Iterate params: %#v" . -}} {{- with index $sourcePage.Params $param -}} {{- printf "Iteration: %#v" . -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}}