{{ $heading_level := .heading_level | default 3 }} {{ $heading := printf "h%d" $heading_level }} {{ $options := .options }} {{ $template := printf "posts/post.html" }}
{{ range $post := .posts -}} {{ with site.GetPage .path }} {{ partial "posts/post.html" (dict "post" . "heading" $heading "options" $options )}} {{ end }} {{ end }}