Add posts page; fix post templates

This commit is contained in:
2025-05-15 11:13:18 -07:00
parent 5f32456f4b
commit 014a3fd49f
6 changed files with 37 additions and 46 deletions

View File

@@ -10,17 +10,4 @@ $wrap{"root"}
</p>
</section>
<article>
<header>
<div>
<h2>$(title or id)</h2>
<time>$(post.publish_date)</time>
</div>
</header>
$body
<div class="mt-16">
<a href="/posts">Back to posts</a>
</div>
</article>
$body

16
templates/post.html Normal file
View File

@@ -0,0 +1,16 @@
$wrap{"blog"}
<article>
<header>
<div>
<h2>$(title or id)</h2>
<time>$(post.publish_date)</time>
</div>
</header>
$body
<div class="mt-16">
<a href="/posts">Back to posts</a>
</div>
</article>