aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-08 18:27:48 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-08 18:27:48 +0200
commit383f0a2fe4f90c9231dc92e8fc34679c219f7009 (patch)
tree4dbad5a8300db96d19b59ef6fd171de376aeb25e /layouts/index.html
downloadhugo-minimalist-theme-383f0a2fe4f90c9231dc92e8fc34679c219f7009.tar.gz
hugo-minimalist-theme-383f0a2fe4f90c9231dc92e8fc34679c219f7009.tar.bz2
hugo-minimalist-theme-383f0a2fe4f90c9231dc92e8fc34679c219f7009.zip
Minimalist theme blog elements
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 }}