How I made this website
This is the first post on this website and it is about how I made it work. You probobly are connected to this website through either HTTP or Gemini Protocol. While my website is desinged for HTML, it is stuck with limitations of Gemtext so there aren't any links inside of texts.
What I wanted from my website
I wanted to have a simple website. A website that:
- Doesn't use any Javascript
- I can write posts using Markdown
- Doesn't require any regenerating (just put a file in place and forget)
- I can do whatever I want to
I don't need to make it work on old browsers. As long as it works on modern Chromium-based and Gecko-based browser I'm fine. The only thing that would be a nice feature are comments. It would be nice to read what people think about my posts.
Why did I make it for Gemini
I actually don't care about Gemini (sorry Geminispace people). I just found it convenient to have it not just on normal Internet space but also on the Geminispace. The syntax for Gemtext is essentially Markdown. Instead of writing Markdown and then covert it to HTML or Gemtext, I write Gemtext and then convert it to HTML. That way I killed two birds with one stone, even if I didn't need that second bird.
How I made it work
I used this nice script:
gemtext-html-converterto convert gemtext to html. I also needed to make it run every time when someone goes into my website. For that I repurposed code from:
https://github.com/tanzilli/playground/blob/master/python/httpserver/example1.pyI needed to make it work with Python 3 and connect the converter and the server together. I also needed to add a 404 "Not Found" respouse. I created a nice black, white and yellow template by myself. I like these colors and they don't burn you eyeballs (maybe yellow is burning but I don't use it a lot).
That's it?
Yes, nothing more, nothing less. I like it that way and while maybe this isn't the best way but it is my way. Maybe I would add comments, but only to HTTP users. I think it would be tedious to send input requests to Gemini users, but who knows?