]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blob - layouts/index.html
Add projects section
[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 <h2>Recently Updated Projects</h2>
11 <ul>
12 {{ range first 3 ($.Site.GetPage "/projects").Pages }}
13 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
14 {{ end }}
15 </ul>
16 <ul style="list-style: none;"><li><a href="/projects">See all the projects</a></li></ul>
17 {{ end }}