summaryrefslogtreecommitdiff
path: root/layouts/_default/home.html
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-02-11 13:07:32 +0100
committermjkwiatkowski <mati.rewa@gmail.com>2026-02-11 13:07:32 +0100
commit8a5c074fce30a855f11a70a8f4d200382985cc51 (patch)
treeb1a9f1f2f24eacac1981fac2172c5d915dbb6d9a /layouts/_default/home.html
parent1ffc59a9975679dfb43f3b8e12649b76efa51f4b (diff)
fix: added the _default again
Diffstat (limited to 'layouts/_default/home.html')
-rw-r--r--layouts/_default/home.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
new file mode 100644
index 0000000..2dabf5b
--- /dev/null
+++ b/layouts/_default/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 }}