Remove dates from html filenames and links
This commit is contained in:
@@ -93,12 +93,14 @@ sitegen.create =>
|
||||
add "blog.html", target: "posts/index", template: "blog"
|
||||
|
||||
for path, target in pairs posts "docs"
|
||||
id = extract_id path
|
||||
|
||||
add path,
|
||||
target: target
|
||||
target: Path.join Path.basepath(target), id
|
||||
template: "post"
|
||||
is_a: "post"
|
||||
publish_date: publish_date(path)
|
||||
id: extract_id(path)
|
||||
publish_date: publish_date path
|
||||
id: id
|
||||
titleize: (slug) -> html.build -> titleize_slug(slug)
|
||||
|
||||
-- replace post markdown yaml headers with moonscript headers
|
||||
|
||||
Reference in New Issue
Block a user