Started styling the app and have got editing posts working.

This commit is contained in:
Leon Mika 2025-01-27 21:45:54 +11:00
parent 7ef6725bdb
commit bf5d6cbe52
20 changed files with 511 additions and 41 deletions

View file

@ -0,0 +1,20 @@
<div>
<a href="/sites/{{.site.ID}}/posts/new">New Post</a>
</div>
{{range .posts}}
{{if .Title}}
<h3>{{.Title}}</h3>
{{end}}
<div class="post">
{{.Body | markdown}}
<div>
<a href="/sites/{{$.site.ID}}/posts/{{.ID}}">Edit</a>
</div>
</div>
<hr>
{{else}}
<p>No posts yet</p>
{{end}}