{{ define "posts/index.html" }} {{ template "layouts/_head.html" . }} {{ template "layouts/_header.html" . }}
{{ if .posts }} {{ end }}
{{ template "posts/_right.html" . }}
{{ template "layouts/_footer.html" . }} {{ template "layouts/_js.html" . }} {{/* 自定义 js 写在这个下面 */}} {{ end }}