From 11d4b9703568b2f3ff5a4dd0bc4f6e947420d948 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 20:18:05 -0700 Subject: [PATCH] Don't need to add titleize to cosmo_helpers --- site.moon | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site.moon b/site.moon index 120ede0..38905a3 100644 --- a/site.moon +++ b/site.moon @@ -72,8 +72,6 @@ titleize_slug = (slug="") -> -- replace '$if' helper function with cosmo's 'cif' html_renderer.cosmo_helpers.if = (args, has_block) => cosmo.cif args, has_block --- add a '$titleize' helper function -html_renderer.cosmo_helpers.titleize = (slug) => titleize_slug slug files_from = (path=".") -> [Path.join path, file for file in *reverse get_files path] @@ -88,6 +86,7 @@ sitegen.create => @site_title = "WebDevCat.me" @app_name = "stasis" @version = "0.2.12" + @titleize = (slug) => titleize_slug slug @just_render_the_damn_list = (arg={}, _) => posts = [post for post in *get_posts @, arg.limit]