WIP: use pandoc to convert markdown
This commit is contained in:
13
site.moon
13
site.moon
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user