summaryrefslogtreecommitdiff
path: root/layouts/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/home.html')
-rw-r--r--layouts/home.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/home.html b/layouts/home.html
new file mode 100644
index 0000000..2dabf5b
--- /dev/null
+++ b/layouts/home.html
@@ -0,0 +1,19 @@
+{{ define "main" }}
+<div class="body">
+ <h2>{{ .Title }}</h2>
+ {{ .Content }}
+</div>
+<div class="list">
+ <h2>Recent posts</h2>
+ <ul>
+ {{ $pages := .Pages }}
+ {{ $pages = .Site.RegularPages }}
+ {{ range (where $pages "Section" "!=" "") }}
+ <li>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
+ <span class="date"> Published on {{ .Date.Format "2006/01/02" }}</span>
+ </li>
+ {{ end }}
+ </ul>
+</div>
+{{ end }}