{{ $h := .h }} {{ range .pages }} {{ partial "preview/post.html" (dict "h" $h "page" .) }} {{ end }}