logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault
commit: 3bd011395f86e09684e84821ade379b9bef042e5
parent 2cfa5b9a8d4d26ba411a36dacaa68c36a09e6c99
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun,  8 Nov 2020 16:34:07 -0500

Fix URLs in HN post

/cgi-bin/hn.py/view has been replaced with /cgi-bin/web.sh

Diffstat:

Mcontent/blog/HN-over-Gemini.gmi4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/blog/HN-over-Gemini.gmi b/content/blog/HN-over-Gemini.gmi @@ -10,13 +10,13 @@ Note that it's kind of finicky (and, to be honest, so is gmnisrv), so we can hop The HTML to Gemtext conversion works even better than I expected. The guts of it are in a small JavaScript program: -=> gemini://drewdevault.com/cgi-bin/hn.py/view?https%3A//git.sr.ht/~sircmpwn/gci-scripts/tree/master/web2gmi.js web2gmi.js (viewed on git.sr.ht via the readability converter!) +=> gemini://drewdevault.com/cgi-bin/web.sh?https://git.sr.ht/~sircmpwn/gci-scripts/tree/master/web2gmi.js web2gmi.js (viewed on git.sr.ht via the readability converter!) This can stand alone pretty well on its own, so I might refactor things to convert this less from a purpose-built HN viewer and into a more general-purpose gemini-to-web gateway. Patches also welcome, if anyone wants to help out with that. The other component is just a little bit of rigging to consult the HN API, render the front page as Gemtext, and handle the linkage to the web to gemtext converter. -=> gemini://drewdevault.com/cgi-bin/hn.py/view?https%3A//git.sr.ht/~sircmpwn/gci-scripts/tree/master/hn.py hn.py (via git.sr.ht) +=> gemini://drewdevault.com/cgi-bin/web.sh?https://git.sr.ht/~sircmpwn/gci-scripts/tree/master/hn.py hn.py (via git.sr.ht) The source code is available in my CGI scripts repository: