1{{ template "base.html" . }} 2 3{{ define "content" }} 4<div> 5 <h2>Posts</h2> 6 <ul> 7 {{ range .Pages }} 8 {{ if eq .Type "post" }} 9 <li><a href="/{{ .RelPermalink }}">{{ .Title }}</a></li> 10 {{ end }} 11 {{ end }} 12 </ul> 13</div> 14{{ end }}