{{ $posts := (.Scratch.Get "posts") }}
{{ range $index, $post := $posts }}
{{ partial "blog-post-card.html" . }}
{{ $currentIndex := add $index 1 }}
{{ $row := mod $currentIndex 3 }}
{{ if and (eq $row 0) (ne $currentIndex (len $posts)) }}
{{ end }}
{{ end }}