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{}}
|
||||
|
||||
|
14
site.moon
14
site.moon
@ -235,13 +235,13 @@ sitegen.create =>
|
||||
posts = [listing_info post for post in *get_posts @, arg.limit]
|
||||
|
||||
html.build ->
|
||||
return for post in *posts
|
||||
tag.section {
|
||||
tag.h3 { tag.a { post.title, href: post.url }}
|
||||
tag.time { post.publish_date }
|
||||
"—"
|
||||
post.blurb
|
||||
tag.a { "Read post →", href: post.url }
|
||||
import section, h3, time, a from tag
|
||||
|
||||
return for { :title, :publish_date, :url, :blurb } in *posts
|
||||
section {
|
||||
h3 { a { title, href: url }}
|
||||
time { publish_date }
|
||||
"—", blurb, a { "Read post →", href: url }
|
||||
}
|
||||
|
||||
-- [tag.section { "hoh" } for post in *posts]
|
||||
|
Loading…
x
Reference in New Issue
Block a user