diff --git a/blog.html b/blog.html index c4100af..1be85c7 100644 --- a/blog.html +++ b/blog.html @@ -1,3 +1,3 @@

Posts

-$just_render_the_damn_list{} +$list_posts{} diff --git a/index.html b/index.html index eeccc5e..ec3575c 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ $render{"templates/wares"}

Posts

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

View more posts diff --git a/site.moon b/site.moon index 9afab1e..d84914d 100644 --- a/site.moon +++ b/site.moon @@ -87,7 +87,7 @@ sitegen.create => @titleize = (slug) => titleize_slug slug @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] html.build ->