{{ $context := . }} {{- if .Params.contents -}}
{{- range .Params.contents -}} {{ if eq .kind "block" }} {{ $template := printf "blocks/templates/%s.html" .template }} {{ partial $template (dict "block" . "context" $context )}} {{- else if (eq .kind "heading") -}} {{ $headingId := .slug | default (urlize .title) }}

{{ partial "PrepareHTML" .title }}

{{- end -}} {{- end -}}
{{- end -}}