layouts/index.html (view raw)
1{{ define "main" }}
2<div>{{ .Content }}</div>
3<div>
4 <h1>Blog</h1>
5 <ul class="links-list">
6 {{ range first 10 (where site.RegularPages "Section" "posts") }}
7 <li>
8 <a href="{{ .RelPermalink }}"
9 >{{ .Date | time.Format "Jan 2006" }} - {{ .LinkTitle }}</a
10 >
11 </li>
12 {{ end }}
13 </ul>
14</div>
15{{end}}