Site

build crates.io

Site is a fast, simple, and opinioned static site generator, written in Rust. Highlights include:

Install

shell cargo install site

Usages

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.

Directory structure

text root_dir/ - src/ - (Put your markdown files here) - template/ - (Put your template files here)

Markdown

site supports markdown:

```text

Article title

Section

Hello world! ```

Nothing special except for:

Metadata

TODO: Explain

Template variables

TODO: Explain

Build

CLI

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.

GitHub Action

You can also use GitHub Action to build and deploy automatically if you are using GitHub pages. See build.yml as an example.