{{template "layout/header.html" .}} {{template "layout/nav.html" .}}

社区帖子

{{if .IsLoggedIn}} 撰写帖子 {{end}}
{{if .Error}}
{{.Error}}
{{end}} {{if .Keyword}}
搜索:{{.Keyword}}
{{end}}
{{if eq (len .Posts) 0}}
暂无帖子
{{else}} {{range .Posts}}

{{.Title}}

{{.CreatedAt.Format "2006-01-02 15:04"}}

{{printf "%.200s" .Body}}

{{end}} {{end}}
{{if gt .TotalPages 1}} {{end}}
{{template "layout/footer.html" .}}