{{ define "posts/article.html" }} {{ template "layouts/_head.html" . }} {{ template "layouts/_header.html" . }}

{{ .post.Title }}

作者: {{ .post.Author }}

发布于 {{ .post.CreatedAt.Format "2006-01-02" }} | 最后更新 {{ .post.UpdatedAt.Format "2006-01-02" }}


{{ .post.Body | markdowntohtml }}
{{ template "posts/_right.html" . }}
{{ template "layouts/_footer.html" . }} {{ template "layouts/_js.html" . }} {{/* 自定义 js 写在这个下面 */}} {{ end }}