Rename function

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 20:18:05 -07:00
parent d0fc8efb96
commit 7dc00e33c4
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
<h2>Posts</h2> <h2>Posts</h2>
$just_render_the_damn_list{} $list_posts{}

View File

@ -2,7 +2,7 @@ $render{"templates/wares"}
<h2>Posts</h2> <h2>Posts</h2>
$just_render_the_damn_list{limit = 5} $list_posts{limit = 5}
<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>

View File

@ -87,7 +87,7 @@ sitegen.create =>
@titleize = (slug) => titleize_slug slug @titleize = (slug) => titleize_slug slug
@cif = (args, has_block) => cosmo.cif args, has_block @cif = (args, has_block) => cosmo.cif args, has_block
@just_render_the_damn_list = (arg={}, _) => @list_posts = (arg={}, _) =>
posts = [post for post in *get_posts @, arg.limit] posts = [post for post in *get_posts @, arg.limit]
html.build -> html.build ->