Site is a fast, simple, and opinioned static site generator, written in Rust. Highlights include:
shell
cargo install site
No documentations yet.
Meanwhile, as a living document, use hayatoito/hayatoito.github.io as your starter boilerplate. https://hayatoito.github.io/ is built from that repository.
text
root_dir/
- src/
- (Put your markdown files here)
- template/
- (Put your template files here)
src/
is a
directory where your all markdown files live. They are converted into HTML
files, using Jinja2 template, and are copied into the output directory.
Any other resources in src
directory are also copied to the output
directory.
template/
is a directory where jinja2's template files live.
site
supports markdown:
```text
Hello world! ```
Nothing special except for:
date
follows.TODO: Explain
TODO: Explain
shell
site build --root-dir . --config=config.toml --out-dir out
root-dir
should contain src
and template
directories.
See Make.zsh for the example CLI for various tasks.
You can also use GitHub Action to build and deploy automatically if you are using GitHub pages. See build.yml as an example.