Detect every odd post in a range

Untested, but should work:

{{ range $i,$p := where .Data.Pages "Section" "services" }}
  {{if not (modBool $i 2)}}
     it's odd
   {{end}}
 {{end}}
5 Likes