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))