SiteGen
SiteGen is the static site generator.
Usage
- Website source files should have the following directory structure (file names are for exapmle):
|-- static
| |-- css
| |-- fonts
| `-- img
`-- src
|-- css
| `-- main.scss
|-- pages
| |-- products
| | `-- first.hbs
| `-- index.hbs
|-- templates
| `-- layout.hbs
`-- main.rs
- Add
sitegen
to yourCargo.toml
:
[]
= "0.0"
# or
= { = "https://github.com/noviga/sitegen" }
- Add to your generator script:
- Build the website and find it in the
site
directory:
cargo run
License
Source code is licensed under MIT license.