Rename template helper

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-16 20:18:05 -07:00
parent 16795a92ee
commit 4f7980256d
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ sitegen.create =>
is_a: "post" is_a: "post"
publish_date: publish_date(path) publish_date: publish_date(path)
id: extract_id(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 -- replace post markdown yaml headers with moonscript headers
filter "docs", (body) => filter "docs", (body) =>

View File

@ -3,7 +3,7 @@ $wrap{"blog"}
<article> <article>
<header> <header>
<div> <div>
<h2>$(title or to_title(id))</h2> <h2>$(title or titleize(id))</h2>
<time>$publish_date</time> <time>$publish_date</time>
</div> </div>
</header> </header>