So much better
This commit is contained in:
parent
341fb76723
commit
05a6384900
@ -1,4 +1,4 @@
|
|||||||
<p>just_render: $just_render_the_damn_list{limit = 2}</p>
|
<p>just_render: $just_render_the_damn_list{}</p>
|
||||||
|
|
||||||
$map{$do_unpack{}}
|
$map{$do_unpack{}}
|
||||||
|
|
||||||
|
14
site.moon
14
site.moon
@ -235,13 +235,13 @@ sitegen.create =>
|
|||||||
posts = [listing_info post for post in *get_posts @, arg.limit]
|
posts = [listing_info post for post in *get_posts @, arg.limit]
|
||||||
|
|
||||||
html.build ->
|
html.build ->
|
||||||
return for post in *posts
|
import section, h3, time, a from tag
|
||||||
tag.section {
|
|
||||||
tag.h3 { tag.a { post.title, href: post.url }}
|
return for { :title, :publish_date, :url, :blurb } in *posts
|
||||||
tag.time { post.publish_date }
|
section {
|
||||||
"—"
|
h3 { a { title, href: url }}
|
||||||
post.blurb
|
time { publish_date }
|
||||||
tag.a { "Read post →", href: post.url }
|
"—", blurb, a { "Read post →", href: url }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- [tag.section { "hoh" } for post in *posts]
|
-- [tag.section { "hoh" } for post in *posts]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user