HACKER Q&A
📣 bhasi

Which Python or Rust-based static site generators to use as of 2023?


I recently bought a domain to create my personal website, and have hooked up Github Pages to display a "Hello World" message at my custom domain (yay!).

I want to learn some Python or Rust by setting up a static site generator, a deploying mechanism and some CI tests. I've done some research on available options, but would love to know what HN recommends I use.

Any and all pointers are welcome! Thank you.


  👤 rnestler Accepted Answer ✓
I use Pelican (https://getpelican.com/) for my blog, which works decently for me. It is a static site generator written in Python.

But you probably won't learn much Python by using it (or Rust when using a generator written in it) since you probably won't need to change anything in it. The only Python code you need to write for Pelican is the configuration, which is just setting a few variables.


👤 linhns
Zola (https://www.getzola.org/) is what I use for my website. Feeling good about it so far.

👤 verdverm
If you are more focused on the devops part, and not implementing a static site generator, then go with Python. For our static sites we use Hugo + GH Actions + Kubernetes (since we have a cluster anyway). There is not really any code involved here (example: https://github.com/hofstadter-io/cuetorials.com)

I'm personally interested to try https://docs.dagger.io/sdk/python/ for something. I used the CUE sdk, but it is effectively deprecated at this point. I use a mix of base, make, python, and CUE fro most devops / devex stuff now. Dagger makes it so local & CI stuff runs the same.