It's 2024 and winsel.net turned 20 this year, almost old enough to ruin its brain with alcohol, assuming this blog lived in the divided states of america, which it luckily does not. After going through dozens of iterations, "projects" and wipes I hereby declare it being redone AGAIN. But after ditching wordpress long time ago and sticking with publii for a couple of years now, I decided to write my own static site generator. A mixture of boredom and spite led me to this decision.
As I wanted to gain some more python knowledge, the language in which to write this little piece of software in was chosen.
My goal in mind was pretty simple: Write your posts in Markdown, run a script that generates HTML, puts it inside of a template and upload it. To have a good starting point when you enter winsel.net, the script should also generate an index.html with links and dates of the "blog"-posts. In the first iteration it should also alow you to put images and video in the post.
Basically the core functionalities are all done by now except for the automatic upload to my domain, which I might add in the future. It was a nice little exercise to distract myself during my time off this week. I learned a lot of new and refreshed some old stuff while coding this script and customized the HTML and CSS templates. But I also have a little todo list of what I want to implement in the future or what I think needs to be adjusted. The python code itself might need some refactoring and additional error handling. It would also be nice, to navigate through the posts with some kind of next/previous button underneath each post.
We'll see how that goes, I have only a couple workdays left in 2024 so I might have some time to keep that little flow that I have now running. But it would also be nice to actually have something to write about here...