From ee8d797a15061bd0846e03b6284144b63c0f74ae Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 20:18:05 -0700 Subject: [PATCH] Inline posts list template --- site.moon | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/site.moon b/site.moon index 1326f13..b17601f 100644 --- a/site.moon +++ b/site.moon @@ -79,19 +79,17 @@ titleize_slug = (slug) -> words = [{ titleize word } for word in *common.split slug, "-"] table.concat [head .. tail for { head, tail } in *words], " " -template = [[ -
-

$post_title

- — $blurb - Read post → -
-]] - list_posts = (page, args={}) -> posts = page.site\query_pages { is_a: "post" } table.sort posts, (a, b) -> a.source > b.source - table.concat [common.fill_ignoring_pre template, { + table.concat [common.fill_ignoring_pre [[ +
+

$post_title

+ — $blurb + Read post → +
+ ]], { target: meta.target post_title: meta.title or titleize_slug meta.id publish_date: publish_date source