Hastie is a static site generator, it processes a folder of markdown text files, applies a template, and generates an HTML site.
To use Hastie:
- Create your content in markdown organized by directory.
- Specify templates to use in
hastie.toml
- Run Hastie to smash the two together, output to
output/
- Upload and serve.
Install using pip
python3 -m pip install git+https://github.com/mkaz/hastie
See the docs site in this repo for documentation.
# clone repo
git clone https://github.com/mkaz/hastie
cd hastie
# install dependencies
poetry install
# build docs site
cd docs
poetry run python ../hastie/main.py
# serve site
python3 -m http.simple --directory output/
Hastie started as a Go project, but rewritten to Python. See golang branch for archived code.
Why? I switched my mkaz.blog site over to static for easier maintenance and looked briefly at Pelican but it does too much. Domain name aside, my site isn't really a blog in the reverse-chronological order of posts sense; it is a collection of pages in categories.
Pelican has a lot of requirements around dates, and template types. It generates numerous additional pages for author, tags, and other things I don't really want.
So I dusted off Hastie which does exactly what I want, but since I haven't coded in Go in awhile, I switched it over to Python.
The project is licensed under the MIT LICENSE.