From 05a6384900a2bc55be3946bb62402d8ab87d2d22 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 23 May 2025 13:02:10 -0700 Subject: [PATCH] So much better --- index.html | 2 +- site.moon | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 6aac3df..6cfad87 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -

just_render: $just_render_the_damn_list{limit = 2}

+

just_render: $just_render_the_damn_list{}

$map{$do_unpack{}} diff --git a/site.moon b/site.moon index c9ca827..b653de3 100644 --- a/site.moon +++ b/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]