💾 Archived View for warmedal.se › ~bjorn › posts › re-links-without-scheme.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

Re: Links Without Scheme

Alex wrote about how he’s using schemeless URLs for his dual hosting setup.

It’s really neat. I learned about this trick some time ago, but am not using it myself. But for many others who dual host (or triple host: http, gemini, gopher) it can be useful and I figure I should boost it just for that.

I can share my own solution too, which is objectively worse! 😄

I don’t dual host all my posts. This one, for example, is only on gemini. And all my pages are static, which means the dual hosted posts exist in a gemtext version and an html version.

Luckily I built my publishing system myself, meaning I can customize as much as I want. Thus I decided to only use relative links when referring to my own posts, and use the suffix ”.BOTH” if the post in question is available in both versions. When the post is published the link suffix will be changed to either ”.gmi” or ”.html” depending on the target folder.

I suspect schemeless URL links will be useful if and when I link to dual hosted content elsewhere, of course. Maybe in conjunction with ”.BOTH”, even.

-- CC0 ew0k, 2021-07-05