diff --git a/site.moon b/site.moon index fb57173..6b30c3e 100644 --- a/site.moon +++ b/site.moon @@ -62,9 +62,13 @@ sitegen.create => add "index.html" add "blog.html", target: "posts/index", template: "blog" - add path, target: out, template: "post", is_a: "post", post: { - publish_date: publish_date(path) - }, id: extract_id(path) for path, out in pairs posts "docs" + for path, target in pairs posts "docs" + add path, + target: target + template: "post" + is_a: "post" + publish_date: publish_date(path) + id: extract_id(path) -- replace post markdown yaml headers with moonscript headers filter "docs", (body) => diff --git a/templates/post.html b/templates/post.html index b1e7660..702902b 100644 --- a/templates/post.html +++ b/templates/post.html @@ -4,7 +4,7 @@ $wrap{"blog"}

$(title or id)

- +