{{define "thumbnail"}} {{template "thumbnail-open" .}} {{template "thumbnail-close"}} {{end}} {{define "thumbnail-open"}} {{with .Post}}
{{if .Thumbnails}} {{.Cid}} {{else}}
{{.Mime}}
{{end}}
{{end}} {{end}} {{define "thumbnail-close"}}
{{end}} {{define "thumbnail-cards"}}
{{$zindex := 1000}} {{range .Posts}}
{{$zindex = add $zindex -1}} {{.Cid}}
{{end}}
{{end}}