{{define "title"}}首页{{end}} {{define "seo"}} {{end}} {{define "content"}}
{{range .index_navs}} {{.Name}} {{end}}
{{if .cur_nav.Children}}
{{range .cur_nav.Children}} {{.Name}}     {{end}}
{{end}} {{with or .feeds .topics .articles .docs .subjects}} {{range $i, $feed := $.feeds}}
{{if .Cmtnum}} {{end}}
{{if .User}} {{else}} {{end}} {{.Title}}
{{if .Top}} 置顶 • {{end}} {{if eq .Objtype 0}} {{.Node.name}} {{else if eq .Objtype 1}} {{if .Tags}} {{$tags := explode .Tags ","}} {{index $tags 0}} {{else}} 文章 {{end}} {{else if eq .Objtype 2}} {{.Node.name}} {{else if eq .Objtype 3}} WIKI {{else if eq .Objtype 4}} 开源项目 {{else if eq .Objtype 5}} 图书 {{end}}  •  {{if .Uid}} {{.User.Username}} {{else}} {{.Author}} {{end}}  •  {{if .Lastreplyuid}}  • 最后回复来自 {{.Lastreplyuser.Username}} {{else}} 发布 {{end}}  •  {{$likeFlag := index $.likeflags .Objid .Objtype}} {{if .Likenum}} {{.Likenum}} · {{end}} {{if $likeFlag}}已赞{{else}}赞{{end}}
{{.Cmtnum}}
{{if eq $i 4}} {{if $.pos_ad.banner}} {{if eq $.pos_ad.banner.AdType 0}} {{noescape $.pos_ad.banner.Code}} {{else}}
{{end}} {{end}} {{else if eq (mod $i 10) 4}} {{if $.pos_ad.feed}} {{if eq $.pos_ad.feed.AdType 0}} {{noescape $.pos_ad.feed.Code}} {{else}}
{{end}} {{end}} {{end}} {{end}} {{range $i, $topic := $.topics}}
{{if .reply}} {{end}}
{{.title}}
{{if .top}} 置顶 • {{end}} {{.node.Name}}  •  {{.user.Username}}  •  {{if .lastreplyuid}}  • 最后回复来自 {{.lastreplyusername}} {{else}} 发布 {{end}}  •  {{$likeFlag := index $.likeflags .tid 0}} {{if .likenum}} {{.likenum}} · {{end}} {{if $likeFlag}}已赞{{else}}赞{{end}}
{{.reply}}
{{if eq $i 4}} {{if $.pos_ad.other_banner}} {{if eq $.pos_ad.other_banner.AdType 0}} {{noescape $.pos_ad.other_banner.Code}} {{else}}
{{end}} {{end}} {{else if eq (mod $i 10) 4}} {{if $.pos_ad.feed}} {{if eq $.pos_ad.feed.AdType 0}} {{noescape $.pos_ad.feed.Code}} {{else}}
{{end}} {{end}} {{end}} {{end}} {{range $i, $article := $.articles}}
{{if .Cmtnum}} {{end}}
{{if .User}} {{else}} {{end}} {{.Title}}
{{if .Top}} 置顶 • {{end}} {{if .Tags}} {{$tags := explode .Tags ","}} {{index $tags 0}} {{else}} 文章  •  {{end}} {{if and .IsSelf .User}} {{.User.Username}} {{else}} {{.AuthorTxt}} {{end}}  •  {{if .Lastreplyuid}}  • 最后回复来自 {{.LastReplyUser.Username}} {{else}} 发布 {{end}}  •  {{$likeFlag := index $.likeflags .Id 1}} {{if .Likenum}} {{.Likenum}} · {{end}} {{if $likeFlag}}已赞{{else}}赞{{end}}
{{.Cmtnum}}
{{if eq $i 4}} {{if $.pos_ad.other_banner}} {{if eq $.pos_ad.other_banner.AdType 0}} {{noescape $.pos_ad.other_banner.Code}} {{else}}
{{end}} {{end}} {{else if eq (mod $i 10) 4}} {{if $.pos_ad.feed}} {{if eq $.pos_ad.feed.AdType 0}} {{noescape $.pos_ad.feed.Code}} {{else}}
{{end}} {{end}} {{end}} {{end}} {{range $i, $doc := $.docs}}
{{if .Cmtnum}} {{end}}
{{if .Uid}} {{$user := index $.users .Uid}} {{else}} {{end}} {{.Title}}
{{if .Nid}} {{$node := index $.nodes .Nid}} {{$node.Name}} {{else}} {{if .Tags}} {{$tags := explode .Tags ","}} {{index $tags 0}} {{else}} {{if eq .Objtype 1}} 文章 {{else if eq .Objtype 2}} 分享发现 {{else if eq .Objtype 3}} WIKI {{else if eq .Objtype 4}} 开源项目 {{end}} {{end}} {{end}}  •  {{if .Uid}} {{$user := index $.users .Uid}} {{$user.Username}} {{else}} {{.Author}} {{end}}  •  {{if .Lastreplyuid}} {{$user := index $.users .Lastreplyuid}}  •  最后回复来自 {{$user.Username}} {{else}} 发布 {{end}}  •  {{$likeFlag := index $.likeflags .Objid .Objtype}} {{if .Likenum}} {{.Likenum}} · {{end}} {{if $likeFlag}}已赞{{else}}赞{{end}}
{{.Cmtnum}}
{{if eq $i 4}} {{if $.pos_ad.other_banner}} {{if eq $.pos_ad.other_banner.AdType 0}} {{noescape $.pos_ad.other_banner.Code}} {{else}}
{{end}} {{end}} {{else if eq (mod $i 10) 4}} {{if $.pos_ad.feed}} {{if eq $.pos_ad.feed.AdType 0}} {{noescape $.pos_ad.feed.Code}} {{else}}
{{end}} {{end}} {{end}} {{end}} {{range $i, $subject := $.subjects}}
{{if .ArticleNum}} {{end}}
{{if .Cover}} {{else}} {{end}} {{.Name}}
专栏  •  {{.User.Username}}  •  {{if .ArticleNum}} 有新文章 {{else}} 创建于 {{end}}
{{.ArticleNum}}
{{if eq $i 4}} {{if $.pos_ad.other_banner}} {{if eq $.pos_ad.other_banner.AdType 0}} {{noescape $.pos_ad.other_banner.Code}} {{else}}
{{end}} {{end}} {{else if eq (mod $i 10) 4}} {{if $.pos_ad.feed}} {{if eq $.pos_ad.feed.AdType 0}} {{noescape $.pos_ad.feed.Code}} {{else}}
{{end}} {{end}} {{end}} {{end}} {{if $.page}}
{{end}} {{else}}
暂无主题
{{end}}
节点导航
{{range .all_nodes}}
{{range $parent, $children := .}} {{end}}
{{$parent}} {{range $children}} {{.name}}    {{end}}
{{end}}
{{include "common/my_info.html" .}} {{if .pos_ad.right1}} {{end}} {{include "sidebar/reading.html" .}} {{include "sidebar/comment.html" .}} {{include "sidebar/new_user.html" .}} {{include "sidebar/active_user.html" .}} {{if .pos_ad.right2}} {{end}} {{include "sidebar/stat.html" .}} {{include "sidebar/friend_link.html" .}} {{include "sidebar/concern.html" .}}
{{end}} {{define "js"}} {{if .pos_ad.banner}} {{if eq .pos_ad.banner.AdType 1}} {{noescape .pos_ad.banner.Code}} {{end}} {{end}} {{end}}