Don't need to add titleize to cosmo_helpers

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-23 15:33:02 -07:00
parent c5c4c493e1
commit 98e219ac50

View File

@ -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]