]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blobdiff - layouts/index.html
Add projects section
[dujemihanovic.xyz.git] / layouts / index.html
index 567a4ab6d6856a1c69a7996b8d11dda424471cb1..9cfa2d076e74a575d2375cca93fc9b8cedf1e018 100644 (file)
@@ -1,11 +1,17 @@
 {{ define "main" }}
 {{ .Content }}
-<h1>Recent Posts</h1>
+<h2>Recent Posts</h2>
 <ul>
        {{ range first 5 ($.Site.GetPage "/posts").Pages }}
        <li><a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Date.Format "January 2, 2006" }}</li>
        {{ end }}
 </ul>
 <ul style="list-style: none;"><li><a href="/posts">Read all the posts</a></li></ul>
-
+<h2>Recently Updated Projects</h2>
+<ul>
+       {{ range first 3 ($.Site.GetPage "/projects").Pages }}
+       <li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
+       {{ end }}
+</ul>
+<ul style="list-style: none;"><li><a href="/projects">See all the projects</a></li></ul>
 {{ end }}