{{define "list"}}
晴空编辑部 · 目录

{{.Data.Heading}}

{{if hasPerm .Perms "post.manage"}}✍ 写文章{{end}}
{{if .Data.Query}}

共找到 {{len .Data.Posts}} 篇相关文章,慢慢挑一篇来读吧。

{{end}} {{if hasPrefix .Path "/category/"}} {{template "follow_button" dict "VD" . "Type" "category" "Key" (trimPrefix .Path "/category/") "Title" .Data.Heading "URL" .Path "Self" ""}} {{else if hasPrefix .Path "/tag/"}} {{template "follow_button" dict "VD" . "Type" "tag" "Key" (trimPrefix .Path "/tag/") "Title" .Data.Heading "URL" .Path "Self" ""}} {{end}}
{{range $i, $p := .Data.Posts}}
{{printf "%02d" (add $i 1)}}

{{$p.Title}}

{{date $p.CreatedAt}} {{if $p.CategoryName}}{{$p.CategoryName}}{{end}} 阅读 {{$p.Views}} {{if index $.Data.Coauthors $p.ID}}共创{{end}}
→
{{else}}

这里还很安静

{{if .Data.Query}}没有找到相关文章,换个关键词试试?{{else}}暂时没有内容,先去别处逛逛吧。{{end}}

{{end}} {{template "pagination" .}} {{end}}