✨feature: Set up templated views and blog support
This commit is contained in:
12
templates/category_page.html
Normal file
12
templates/category_page.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user