]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blob - layouts/index.html
98ec5e6df9181db984ea80750f36184c278482ea
[dujemihanovic.xyz.git] / layouts / index.html
1 {{ define "main" }}
2 {{ .Content }}
3 <h2>Recent Posts</h2>
4 <ul>
5 {{ range first 5 ($.Site.GetPage "/posts").Pages }}
6 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Date.Format "January 2, 2006" }}</li>
7 {{ end }}
8 </ul>
9 <ul style="list-style: none;"><li><a href="/posts">Read all the posts</a></li></ul>
10
11 {{ end }}