Back to Velero

Blog Posts

site/layouts/partials/blog-posts.html

1.18.0261 B
Original Source

{{ $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 }}