diff options
| author | a73x <[email protected]> | 2024-08-25 15:14:42 +0100 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-08-25 15:14:42 +0100 |
| commit | 1b496432df1dc28b25eaeadec5fa537aaf014f98 (patch) | |
| tree | 5d74e20a338c6487302693bc837afc27904ee3ab /templates/posts.html | |
| parent | fea0ef77c8c98dfadd2f9d29804653293fd31c99 (diff) | |
feat(post): templating
add templating for posts and first post
Diffstat (limited to 'templates/posts.html')
| -rw-r--r-- | templates/posts.html | 7 |
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}} |
