This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 20:18:05 -07:00
parent ed4d6498ae
commit a48b79c7c7
2 changed files with 2 additions and 15 deletions

View File

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

View File

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