summaryrefslogtreecommitdiff
path: root/templates/posts.html
diff options
context:
space:
mode:
authora73x <[email protected]>2024-08-25 15:14:42 +0100
committera73x <[email protected]>2024-08-25 15:14:42 +0100
commit1b496432df1dc28b25eaeadec5fa537aaf014f98 (patch)
tree5d74e20a338c6487302693bc837afc27904ee3ab /templates/posts.html
parentfea0ef77c8c98dfadd2f9d29804653293fd31c99 (diff)
feat(post): templating
add templating for posts and first post
Diffstat (limited to 'templates/posts.html')
-rw-r--r--templates/posts.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/posts.html b/templates/posts.html
index 75d3801..c68fb73 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -1,4 +1,9 @@
{{template "base" .}}
{{define "content"}}
-<h1>Posts</h1>
+<h1>posts</h1>
+<ul>
+ {{range .Posts}}
+ <li><a href="{{.Path}}">{{.Title}}</a></li>
+{{end}}
+</ul>
{{end}}