Static site generator. Walks the compiled list of posts and writes a
self-contained website into the output directory (defaults to _site/).
Summary
Functions
Build the static site.
Functions
@spec build(Path.t(), [StaticBlog.Post.t()] | nil) :: {:ok, map()}
Build the static site.
Arguments
output_diris the directory to write into. It is deleted and recreated. Defaults to"_site"in the current working directory.postsis an optional list of posts. Whennil, posts are read from disk viaStaticBlog.RuntimePosts.all/0.
Returns
{:ok, %{files: non_neg_integer(), bytes: non_neg_integer(), output: Path.t()}}with counts of the files written and their total size.