Render a list of posts

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-20 17:54:29 -07:00
parent 37958c8ad8
commit 540ad25e5e
3 changed files with 3 additions and 4 deletions

View File

@ -1,3 +1,3 @@
<h2>Posts</h2>
$lp
$list_posts

View File

@ -6,7 +6,7 @@ $render{"templates/wares"}
<h2>Posts</h2>
$lp{limit = 5}
$list_posts{limit = 5}
<h4 style="text-align: center;">
<a href="$root/posts">View more posts</a>

View File

@ -119,8 +119,7 @@ sitegen.create =>
@site_title = "WebDevCat.me"
@app_name = "stasis"
@version = "0.2.12"
@list_posts = list_posts2
@lp = list_posts
@list_posts = list_posts
add "index.html", title: "Catalin Mititiuc"
add "blog.html", title: "Posts", target: "posts/index", template: "blog"