Added blog posts, and improved homepage

This commit is contained in:
2025-05-23 18:12:16 +02:00
parent 99ab5d388c
commit 847fb6491d
28 changed files with 721 additions and 132 deletions

View File

@@ -0,0 +1,8 @@
{{ define "bodyClass" }}post post-{{ .Slug }}{{ end }}
{{ define "content" }}
<main class="max-80">
<h1>{{ .Title }}</h1>
{{ .Body }}
</main>
{{ end }}

View File

@@ -0,0 +1,13 @@
{{ define "bodyClass" }}page-postsList{{ end }}
{{ define "content" }}
<main class="max-80">
<h1>Blog</h1>
<ul>
{{ range .Posts }}
<li><a href="/blog/{{ .Slug }}/"><strong>{{ .Date.Format "2006-01-02" }}</strong> - {{ .Title }}</a></li>
{{ end }}
</ul>
</main>
{{ end }}