article页面
默认article页面就是文章详情显示页面了
对于分页可以看到,当前也是采用的函数式分页,我们让用户来选择分页方式,到底是全局取分页还是当前分类下取分页。(见api一览)
{{template "header.html" .}}
{{template "nav.html" .}}
{{template "bread-article.html" .}}
{{.title}}
发布时间:阅读数:{{.one.Views}}
{{range $k,$v := .ext}}
{{$k}}{{$v}}
{{end}}
{{.one.Content|Str2Html}}
{{template "sidebar" .}}
{{template "footer.html" .}}
{{template "js.html" .}}