Rename template helper
This commit is contained in:
parent
16795a92ee
commit
4f7980256d
@ -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) =>
|
||||
|
@ -3,7 +3,7 @@ $wrap{"blog"}
|
||||
<article>
|
||||
<header>
|
||||
<div>
|
||||
<h2>$(title or to_title(id))</h2>
|
||||
<h2>$(title or titleize(id))</h2>
|
||||
<time>$publish_date</time>
|
||||
</div>
|
||||
</header>
|
||||
|
Loading…
x
Reference in New Issue
Block a user