{{ with .item.heading }}

{{ . }}

{{ end }} {{- $pages := (.ctx.Site.GetPage .item.content_type).RegularPagesRecursive }} {{- range $idx, $itm := first (.item.max | default 4) $pages }} {{- $rowpos := mod $idx 2 }} {{- if eq $rowpos 0 }}
{{ end }} {{- .Render "shortblock" -}} {{ if or (eq $rowpos 1) (eq $idx (len $pages)) -}}
{{- end }} {{- end }}