Add posts page; fix post templates
This commit is contained in:
@@ -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
16
templates/post.html
Normal 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>
|
||||
Reference in New Issue
Block a user