feature: Set up templated views and blog support

This commit is contained in:
Keith Solomon
2025-04-20 15:39:22 -05:00
parent 463250eb7b
commit 3fe75e9ad5
20 changed files with 580 additions and 255 deletions

View File

@@ -0,0 +1,12 @@
{{ define "category_page" }}
{{ template "base" . }}
{{ end }}
{{ define "category_content" }}
<h1>{{ .Title }}</h1>
<ul>
{{ range .Posts }}
<li><a href="/blog/{{ .Slug }}/">{{ .Title }}</a><br>{{ .Description }}</li>
{{ end }}
</ul>
{{ end }}