aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..17c1d26
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+
+<h1 class="f1">{{.Title}}</h1>
+
+<h2 class="f2">Posts</h2>
+<!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
+
+ {{ range where .Data.Pages "Section" "post" }}
+ {{ .Render "summary" }}
+ {{ end }}
+{{ end }}