{{include "header.html"}} {{include "nav.html"}} {{if index .ThemesExt "show_breadcrumb"}} {{if .Nav}} {{end}} {{end}} {{if .Content}}

{{.Content.Title}}

{{ParseTime .Content.CreatedAt "2006-01-02"}} {{if .Content.Author}} 作者:{{.Content.Author}} {{end}} {{if .Content.ColumnName}} 分类:{{.Content.ColumnName}} {{end}} {{if .Content.Views}} 阅读:{{.Content.Views}} {{end}}
{{if .Content.Img}}
{{.Content.Title}}
{{end}}
{{.Content.Content|Str2Html}}
{{if .Content.Tags}}

标签

{{range .Content.Tags}} {{.Name}} {{end}}
{{end}}
{{if .Prev}}

上一篇

{{.Prev.Title}}
{{end}} {{if .Next}}

下一篇

{{.Next.Title}}
{{end}}
{{if and .Content.EnableComment .Site (eq 1 .Site.EnableComment)}}

评论

{{$comments := ContentComment .Content.Id}}
{{range $k, $v := $comments}}
{{$v.Nickname}}
#{{$v.Id}}
{{$v.Nickname}}
{{if ne 0 $v.Pid}} 回复 {{$v.PNickname}} {{end}}
{{ParseTime $v.CreatedAt ""}}
{{$v.Content}}
{{end}}

发表评论

{{if .Site.EnableCaptcha}}
点击获取验证码
{{end}}
{{end}}
{{end}} {{/* ------------------------------------------------ 内容页深化:进度条 / 目录 / 分享 */}} {{/* 对标长文阅读体验:顶部阅读进度条 + 正文目录(h2/h3 自动锚点)+ 阅读时长 + 复制链接。 全部用前端实现,不依赖后端新接口 —— 正文容器是稳定的 .vm-rich, 扫不到标题(<2 个)就不渲染目录,避免出现空目录这种「看起来像坏了」的噪音。 */}} {{/* vv-article-deepened */}} {{include "footer.html"}} {{include "js.html"}} {{if and .Content.EnableComment .Site (eq 1 .Site.EnableComment)}} {{end}}