From 540ad25e5e1ab0a6026b26dd3471a9cbc9a91d46 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Tue, 20 May 2025 17:54:29 -0700 Subject: [PATCH] Render a list of posts --- blog.html | 2 +- index.html | 2 +- site.moon | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/blog.html b/blog.html index 3162ebb..ab3e0eb 100644 --- a/blog.html +++ b/blog.html @@ -1,3 +1,3 @@

Posts

-$lp +$list_posts diff --git a/index.html b/index.html index a4682a2..e9c40ff 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ $render{"templates/wares"}

Posts

-$lp{limit = 5} +$list_posts{limit = 5}

View more posts diff --git a/site.moon b/site.moon index 6171d18..1326f13 100644 --- a/site.moon +++ b/site.moon @@ -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"