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]