{{printf "%.1s" .Author}}
{{if ne .Type "text"}}
{{if eq .Type "poll"}}🗳 投票
{{else if eq .Type "gallery"}}🖼 多图
{{else if eq .Type "debate"}}⚖ 辩论
{{else if eq .Type "product"}}🛒 商品
{{else if eq .Type "longform"}}📜 长文
{{else if eq .Type "video"}}🎬 视频
{{end}}
{{end}}
{{dateTime .CreatedAt}}
{{if .HasTitle}}{{.Title}}
{{end}} {{if .Folded}} {{/* 长文与超长留言在营地里只留一段摘要:营地是用来逛的,一次读五万字会把人劝退 */}} {{if eq .Type "longform"}}📜 长文 · 全文在详情页{{else}}长留言 · 全文在详情页{{end}} {{.Excerpt}} 查看详情 → {{else}}{{.Body}}
{{end}}
{{if or (eq .Type "poll") (eq .Type "gallery") (eq .Type "product") (eq .Type "debate") (eq .Type "video")}}
{{template "post_type_blocks" dict
"Type" .Type
"Config" .Config
"Poll" .Poll
"Debate" .Debate
"PollURL" (printf "/circles/%s/post/%d/vote" $.Data.Circle.Slug .ID)
"DebateURL" (printf "/circles/%s/post/%d/debate" $.Data.Circle.Slug .ID)
}}
{{end}}