A static site generator in Rust.
Inspired by hugo, incentivised by hugo's too many features.
Have a somewhat current version of stable Rust, 1.82.0 works fine.
# build and run
cargo build --release
# build the example site
cd example
# optionally, get a different blueprint:
mv blueprints blueprints.example
git clone https://github.com/winks/nextgen-blueprints blueprints
../target/release/nextgen
# or run your own
mkdir newsite
cd newsite
cp ../nextgen.toml.default ./nextgen.toml
mkdir content
cp -r ../example/blueprints .
cp ../example/content/_index.md content/
../target/release/nextgen
- blueprints folder must not be a symlink
- no cli args
- panic on error
Built to see how much code is really needed to replicate my website that is built with hugo.
The result originally were 333 lines of code (282 NCLOC) and 6 crates, but with a few features missing.
Here's a detailed writeup about the development.
ISC