Devlog: A tangled web we weave
Many gemini capsules have only one past, from some time in the past, which enthusiastically describes the idiosyncratic way in which the owner has set up the capsule. I'm quite pleased that I've gotten this far into updating my capsule without that post. Now it's time for... that post!
I do want to share what I'm writing here with people who are using web browsers, and so far I've been relying on https://portal.mozz.us for that. My idea is to write my own web interface to my gemini capsule.
The current plan is this: My homepage on sdf.org will just be a cgi script, written in Python. It'll take a few arguments, something like:
diggy.sdf.org/cgi?year=2024&month=12&title=amazing-post
The Python code will read the corresponding gemtext file and write it (unaltered) to a Javscript variable in HTML output. On the client side, I'll have some Javascript to convert the gemtext to HTML. The fiddly part might be handling links - internal links to my capsule will have to be converted to cgi calls like the one above, and links to other gemini capsules will maybe be handled with portal.mozz.us.
I'll add a header or footer that says something like the web is for chumps and geminispace rules.
While I'm listing some intentions here, I also want to update my publishing script so that I push to Antenna every time I post. Until now, I've just been doing that manually for occasional posts. But Antenna is cool so I'd like to automate that.
When am I going to do any of this? I'm not sure yet. I've just started my Christmas holidays and it is not top of my list.