This commit is contained in:
Catalin Constantin Mititiuc 2025-05-21 09:39:31 -07:00
parent e12088f10d
commit 0369d5bb56
2 changed files with 2 additions and 15 deletions

View File

@ -1,10 +1,3 @@
<h2>Posts</h2>
$(get_posts())[[
<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>
]]
$each{list_posts(), "post"}[[$post]]

View File

@ -6,13 +6,7 @@ $render{"templates/wares"}
<h2>Posts</h2>
$(get_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>
]]
$each{list_posts({limit = 5}), "post"}[[$post]]
<h4 style="text-align: center;">
<a href="$root/posts">View more posts</a>