{{if eq .Type "post"}}
{{with .AuthorName}}by {{end}} {{if .Categories}}{{range $i, $c := .Categories}}{{if $i}}, {{end}}{{$c.Name}}{{end}}{{end}} {{if or .CommentsOpen .CommentCount}}{{plural .CommentCount "%s comment" "%s comments"}}{{end}} {{with .EditLink}}{{.}}{{end}}
{{else}}{{with .EditLink}}
{{.}}
{{end}}{{end}}