Static site generator + my presonnal website written in rust for some reason.
1# Staticrustator (being workshopped) 2 3After struggling with rewriting personnal website in a myriad of ways, all in some way unsatisfying, 4I have decided to write my own statis site generator. 5 6Heavily inspired by [Saait](https://codemadness.org/git/saait/), since that is what I have been using previously. 7 8To build 9```bash 10cargo build 11``` 12 13and to create the website structure 14```bash 15cargo run 16``` 17 18This will create the folder `output` then you can sync to your vpc, or however you serve stataic files. 19 20------- 21## File organization 22 23The posts are taken from `posts/` folder, are structured as markdown files, with a front matter in yaml for the date, and title of the post. 24 25 26Example: 27```markdown 28--- 29title: Pantheon 30date: 2024-03-03 31--- 32# WATCH PANTHEON 33 34## I DO NOT CARE WHAT DAY IT IS 35 36### HERE'S YOUR PLAN 37 381. Wake up. 392. Open whatever device you watch things on. 403. Obtain, legally or illegaly, by any means necessary, 2 (two) seasons of Pantheon, created by Craig Silverstein based on short stories by Ken Liu. 414. Binge the 2 sesons in a single night (it is feasable I checked) 42 43Thank you for coming to my Ted Talk. 44``` 45 46Additional pages such as `about` is also taken from there, however you could modify the about template in `templates` folder. 47[Askama](https://github.com/djc/askama) is a rendering engine based on Jinja, so it is rather straight forward to use, 48but also it can take rust `structs` to hold template context, which is very nice. 49 50I have not yet integrated htmx into is, for faster loads of the post body,but that's for the future (also I hate js). 51