WIP: use cosmo.f to list posts?
This commit is contained in:
@@ -6,7 +6,13 @@ $render{"templates/wares"}
|
||||
|
||||
<h2>Posts</h2>
|
||||
|
||||
$(list_posts(5))
|
||||
$list_posts{limit = 5}[[
|
||||
<section>
|
||||
<h3><a href="$target">$post_title</a></h3>
|
||||
<time>$publish_date</time> — $blurb
|
||||
<a class="read-post-link" href="$target">Read post →</a>
|
||||
</section>
|
||||
]]
|
||||
|
||||
<h4 style="text-align: center;">
|
||||
<a href="$root/posts">View more posts</a>
|
||||
|
||||
Reference in New Issue
Block a user