I have a simple template fetching a list of blog posts:
<div class="row">
<div class="cell">
{{range .Pages}}
<p class="dialogue dialogue--wide">
<a href="{{.Slug}}">{{.Title}} </a>
</p>
{{end}}
<br />
<br />
<br />
</div>
</div>
I would like to alternate the design between posts e.g. the first will use a certain
class like
and the second record (or even and odd records if you prefer) another p e.g.thank you!