{{- $position := .position -}} {{- $title := .title -}} {{- $term := false -}} {{- with .data }} {{ if .category }} {{- $term = site.GetPage (printf "/categories%s" .category) -}} {{ end }}
{{ if $title -}} {{- end }}
{{ range $post := .posts -}} {{ with site.GetPage (printf "/posts/%s" $post) }}
{{ partial "posts/post" . }}
{{ end }} {{ end }}
{{ end -}}