feat(layouts): add main template for latest posts

This commit is contained in:
Kumi 2024-07-15 08:28:04 +02:00
parent 23ca72070a
commit 7ac23ec03b
No known key found for this signature in database
GPG key ID: ECBCC9082395383F

13
layouts/index.html Normal file
View file

@ -0,0 +1,13 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<p>{{ .Description }}</p>
<h2>Latest Posts</h2>
<ul>
{{ range where .Site.RegularPages "Section" "posts" }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a> - {{ .Date.Format "2006-01-02" }}
</li>
{{ end }}
</ul>
{{ end }}