Hi,
I am using Bep’s 2017 suggestion to do something different on odd list.html .Summary:
{{ range $i,$p := where .Data.Pages “Section” “services” }}
{{if not (modBool $i 2)}}
it’s odd
{{end}}
{{end}}
However, $i needs to be passed on to {{ Render “summary” }} which I cannot achieve (and it may not be possible here unlike a partial).
I solved the issue now by copying the summary.html code into the list.html page but I am still curious if there is a better solution.