🏕 {{.Data.Circle.Name}}
{{.Data.Circle.Mood}}
{{if ne .Data.Post.Type "text"}}
{{if eq .Data.Post.Type "poll"}}🗳 投票
{{else if eq .Data.Post.Type "gallery"}}🖼 多图
{{else if eq .Data.Post.Type "debate"}}⚖ 辩论
{{else if eq .Data.Post.Type "product"}}🛒 商品
{{else if eq .Data.Post.Type "longform"}}📜 长文
{{else if eq .Data.Post.Type "video"}}🎬 视频
{{end}}
{{end}}
{{.Data.Post.Title}}
{{.Data.Post.Author}}
🕒 {{dateTime .Data.Post.CreatedAt}}
{{template "fav_button" dict "VD" . "Type" "circle" "Key" (printf "%d" .Data.Post.ID) "Title" .Data.Post.Title "URL" .Data.Post.URL}}
{{if eq .Data.Post.Type "longform"}}
{{.Data.Post.Body}}
{{else}}
{{.Data.Post.Body}}
{{end}}
{{/* 类型区块:投票 / 多图 / 辩论 / 商品 / 视频在详情页照常可交互 */}}
{{if or (eq .Data.Post.Type "poll") (eq .Data.Post.Type "gallery") (eq .Data.Post.Type "product") (eq .Data.Post.Type "debate") (eq .Data.Post.Type "video")}}
{{template "post_type_blocks" dict
"Type" .Data.Post.Type
"Config" .Data.Post.Config
"Poll" .Data.Post.Poll
"Debate" .Data.Post.Debate
"PollURL" (printf "/circles/%s/post/%d/vote" .Data.Circle.Slug .Data.Post.ID)
"DebateURL" (printf "/circles/%s/post/%d/debate" .Data.Circle.Slug .Data.Post.ID)
}}
{{end}}
这条留言住在「{{.Data.Circle.Name}}」。营地是大家聊天的地方,这里是一句话被单独留下、可以慢慢读的地方。
{{end}}