{{ range $index, $element := (where .Data.Pages "Section" "post").ByDate.Reverse }}
{{ if and (isset .Params "image") .Params.image }}
{{ if eq (mod $index 2) 0 }}
{{ else }}
{{ end }}
{{ else }}
{{ end }}
{{ if and (isset .Params "image") .Params.image }}
{{ end }}
{{ end }}