Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Which Python or Rust-based static site generators to use as of 2023?
2 points by bhasi on March 4, 2023 | hide | past | favorite | 5 comments
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.



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.


Pelican was one of the options I had in mind too; will consider it more seriously thanks to your recommmendation!

You know, I was wondering about that myself. I guess one of the selling points of these frameworks/products is their ease of configuration, which might mean very minimal hacking required, if any. So it's entirely possible I may not get to learn very much Python this way. Thanks for sharing your experience!


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


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.


Thanks, will check these out too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: