WIP: use pandoc to convert markdown

This commit is contained in:
2025-06-16 20:18:04 -07:00
parent 462a08d9dc
commit 1a84bef4d9
3 changed files with 163 additions and 5 deletions

View File

@@ -119,12 +119,21 @@ sitegen.create =>
-- @what!
add "index.html", o: one
add "index.html"
add path, target: out, template: "blog", is_a: "post", post: {
publish_date: publish_date(path)
}, id: extract_id(path) for path, out in pairs posts "docs"
add "test.html", id: "test"
-- add "docs/2023-11-15-test-mix-task-file-modify.md",
-- target: "posts/2023-11-15-test-mix-task-file-modify.html"
-- template: "blog"
-- is_a: "post"
-- post: {
-- publish_date: publish_date "docs/2023-11-15-test-mix-task-file-modify.md"
-- }
-- id: extract_id "docs/2023-11-15-test-mix-task-file-modify.md"
-- add "test.md"
-- feed "posts.moon", "feed.xml"
-- require("moon").p site