Remove dates from html filenames and links

This commit is contained in:
2025-06-16 20:18:05 -07:00
parent c859775024
commit 18581b3ea4
3 changed files with 17 additions and 16 deletions

View File

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