{{ define "posts" }} {{ $board := .Board }} {{ $len := len .Posts }} {{ range .Posts }} {{ $opId := .Id }} {{ if eq $board.InReplyTo "" }}
{{.Content}}
{{ if .Replies }} {{ $replies := .Replies }} {{ if gt $replies.TotalItems 5 }} {{ $replies.TotalItems }} replies{{ if gt $replies.TotalImgs 0}} and {{ $replies.TotalImgs }} images{{ end }}, Click here to view all. {{ end }} {{ range $replies.OrderedItems }}{{.Content}}