Python MIT

hastie

A static site generator in Python

M

mkaz

Dernière activité 1 janv. 2026
mkaz/hastie

184

étoiles

31

forks

0

issues ouvertes

static-site-generator

Ce README est souvent en anglais.

Hastie - static site generator

Hastie is a static site generator, it processes a folder of markdown text files, applies a template, and generates an HTML site.

Using Hastie

To use Hastie:

  1. Create your content in markdown organized by directory.
  2. Specify templates to use in hastie.toml
  3. Run Hastie to smash the two together, output to output/
  4. Upload and serve.

Install

Install using pip

python3 -m pip install git+https://github.com/mkaz/hastie

Template Building

See the docs site in this repo for documentation.

# clone repo
git clone https://github.com/mkaz/hastie
cd hastie

# install dependencies
uv sync

# build docs site
cd docs
uv run python ../hastie/main.py

# serve site
python3 -m http.simple --directory output/

History

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.

License

The project is licensed under the MIT LICENSE.

Projets similaires

A static website and blog generator

Pythonpythonstatic-sitestatic-site-generator
Ggetnikola
2,7 k étoiles471

Static site generator that supports Markdown and reST syntax. Powered by Python.

Pythonpelicanpythonstatic-site-generator
Ggetpelican
13,3 k étoiles1,8 k

Minimalist Python library for building static websites with Jinja

Pythonjinjajinja2python
Sstaticjinja
341 étoiles53