summaryrefslogtreecommitdiff
path: root/layouts/_default/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/home.html')
-rw-r--r--layouts/_default/home.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
new file mode 100644
index 0000000..999425b
--- /dev/null
+++ b/layouts/_default/home.html
@@ -0,0 +1,14 @@
+{{ define "main" }}
+ {{ .Content }}
+
+ <h2>Latest posts</h2>
+ <ul>
+ {{ range (where site.RegularPages "Section" "posts").ByDate.Reverse }}
+ <li>
+ <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
+ {{ .Summary }}
+ </li>
+ {{ end }}
+ </ul>
+{{ end }}
+