From 4f7980256d4fe3e8040f42c6073385f1239f2601 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 20:18:05 -0700 Subject: [PATCH] Rename template helper --- site.moon | 2 +- templates/post.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site.moon b/site.moon index 72db522..4232c9c 100644 --- a/site.moon +++ b/site.moon @@ -98,7 +98,7 @@ sitegen.create => is_a: "post" publish_date: publish_date(path) id: extract_id(path) - to_title: (slug) -> html.build -> titleize_slug(slug) + titleize: (slug) -> html.build -> titleize_slug(slug) -- replace post markdown yaml headers with moonscript headers filter "docs", (body) => diff --git a/templates/post.html b/templates/post.html index 62b97dd..3d8a237 100644 --- a/templates/post.html +++ b/templates/post.html @@ -3,7 +3,7 @@ $wrap{"blog"}
-

$(title or to_title(id))

+

$(title or titleize(id))