💾 Archived View for lieba.ch › log › writing-yet-another-static-site-generator.gmi captured on 2023-04-19 at 22:27:46. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
After my last post where I mentioned Idiomdrottning.org, Sandra (Idiomdrottning) wrote to me and explained how it really worked, because not all her content is published both on web and gemini, as I originally thought.
And having had that rummaging around in my head for a few days, I am pretty fired up about building something like that for myself. I guess I could ask Sandra for the code to her setup, but what's the fun in that?
So, basically, write articles in markdown, with extra macros in there to handle how links work in HTML and gemtext, then create some sort of naming convention, file header or folder hierarchy to decide which file gets processed for gemini, web or both.
The rest is kind of easy.
I think this is my 4th static website generator I am about to write. I feel like I need to practice my Python a bit, so I'll probably use that.