💾 Archived View for rosenzweig.io › gemlog › hello-gemini.gmi captured on 2020-11-07 at 01:17:57. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Hello, Gemini

Gemini seems pretty neat, and I like the quiet, so I figured I'd pipe my blog into space. My usual HTML blog is maintained in pandoc-flavour markdown, so I wrote a script to translate a subset of Markdown into Gemtext, just enough for my pages to make sense.

Source code

I'm using gemfeed to generate the Atom feed, which estimates dates based on the file timestamps. That too can be piped through with some scripting I am terribly ashamed of:

python3 gemnify.py $1 > ${1%md}gmi

DATE=$(head -n 3 $1  | tail -n 1 | sed -e 's/^date: //')
touch --date="$DATE" ${1%md}gmi

Yes, this is hack. No, I'm not giving up my license to Unix.

And yes, it works :-)

Atom feed produced by Gemfeed

Gemfeed source code

md2gemini, far better code than mine

The results aren't perfect, and I still need to upload all the images, but overall I'm happy with how gentle Gemini is. I have not yet decided if I will continue to maintain the HTML blog in parallel with the gemlog, or pipe Gemtext back into HTML for new posts (a much easier problem). To be determined when I have something worth say back on Earth.

We'll see how this gemlog experiment goes :-)

🚀