Comment by ๐ฒ byte
Re: "Gemini to HTML generator"
@clseibold yeah that what i ended up doing for now, just styling the html tags :) also added a bit of functionality to inject headers and footers and have a classic menus this way
2025-05-04 ยท 1 year ago
11 Later Comments โ
๐ frecklemaster ยท 2025-05-04 at 16:32:
TBH+seems+like+a+simple+script.
๐ฆ roughnecks ยท 2025-05-05 at 05:59:
I tried loxy first, then september, then kineto. Always went back to loxy ยฏ\_(ใ)_/ยฏ
๐ฆ zzo38 ยท 2025-05-05 at 06:09:
I have written a Gemini to HTML converter (and I mentioned it in Usenet), although it does not use CSS at all (since I don't like CSS and I think the default styles are usually better anyways). (Maybe later I will copy it here too, since I have made a few changes since I put it on Usenet.)
๐ mbays ยท 2025-05-05 at 10:24:
Here's one simple implementation of gemtext -> HTML; no CSS, but that should be easy to hack in.
โ gemini.thegonz.net/gmi2html.sed
๐ zeerooth ยท 2025-05-05 at 13:24:
There is also
โ https://codeberg.org/snonux/gemtexter
๐ฝ TKurtBond ยท 2025-05-06 at 01:55:
I use the static site generation feature of Lichen, a CMS written in Forth, to generate the HTML version of consp.org.
Lichen is at https://codeberg.org/stringbone/lichen/src/branch/master
๐ป mediocregopher [...] ยท 2025-05-06 at 06:40:
If you happen to be using Caddy as your webserver, I wrote a plugin for it which can do what you want. There's an example of how to use it in the repo as well.
โ https://dev.mediocregopher.com/mediocre-caddy-plugins/#httphandlersgemtext
๐ฒ byte [OP] ยท 2025-05-07 at 23:01:
@mediocregopher oh wow that's amazing! i should try that :3
๐ป ps ยท 2025-05-08 at 04:12:
Thought, I should use Markdown for preprocessing and then convert it separately to Gemtext, HTML, and any other format. I made a mistake when translated my existing documents from Markdown to Gemtext, just imho.
๐ป mediocregopher [...] ยท 2025-05-08 at 07:16:
@byte feel free to email me if you have any questions about using it :)
๐ clseibold [๐] ยท 2025-05-08 at 10:10:
@ps That seems like a good way to do it. Going from MD to another format will allow you to use more features that are HTML that get discarded in the gemtext. I wonder if anybody has done anything with AsciiDoc to HTML and Gemtext?
Original Post
Gemini to HTML generator โ hi, i was wondering if there are any reliable projects that i could use to convert my capsule with gemlogs into html with css automatically? i got a physical server and will be transfering my stuff onto it, so i decided to give a common web a try as well. as web is inferior to gemini and hand-editing it absolutely sucks, i'd prefer to still write my posts in gemtext for my capsule, and then pass them through some soft that either converts them once or acts as a proxy...