Rename function
This commit is contained in:
parent
d0fc8efb96
commit
7dc00e33c4
@ -1,3 +1,3 @@
|
|||||||
<h2>Posts</h2>
|
<h2>Posts</h2>
|
||||||
|
|
||||||
$just_render_the_damn_list{}
|
$list_posts{}
|
||||||
|
@ -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>
|
||||||
|
@ -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 ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user