{{- $posts := .posts }} {{- $pages := .pages }} {{- $defaultimage := .defaultimage }} {{- $odd := .odd }} {{- $id := "posts"}} {{if $posts.id}} {{- $id = $posts.id}} {{else if .id}} {{- $id = .id }} {{end}}