On 2020-07-16 19:16, Sean Conner wrote: > It was thus said that the Great ext0l at riseup.net once stated: >> >> I'd like to serve it over Gemini as well. So I'm working on a project >> <https://github.com/deifactor/exarch> to do so. But now I'm thinking: >> since Gemini servers are super easy to write, maybe instead of >> converting the markdown to Gemtext and serving that using a generic >> Gemini server, maybe I could have Exarch serve the md files and do the >> conversion directly, sa well as the 'template' files I use to generate >> the lists of posts. And then I just copy over the entire repo and run >> `exarch serve repo-root` to serve it via Gemini (or define an archive >> format that contains all the gmi files and templates and such). >> >> What do you all think? > > Sounds like a great idea. I just finished a module [1] for my own Gemini > server [2] that will convert an entry on my blog [3] from HTML to Gemini > [4]. Although in doing the conversion, I wasn't completely satisfied with > the results due to the simplified nature of Gemin text compared to HTML. It > works, but there are some cases (like nested <BLOCKQUOTE>s or tables) that > might end up looking a bit wierd. > > -spc > > [1] gemini://gemini.conman.org/extensions/GLV-1/handlers/blog.lua > > [2] https://github.com/spc476/GLV-1.12556 > > [3] http://boston.conman.org/ > > [4] The feed file: > > gemini://gemini.conman.org/gemlog.gmini > > The archive: > > gemini://gemini.conman.org/boston/ Yeah, I briefly considered starting from the HTML output since that'd let me ensure that everything looks the same, but then I'd wind up doing a bunch of weird stuff to work with elements of the HTML that shouldn't be replicated (having a title link at the top of each page is idiomatic HTML, but doesn't seem to be idiomatic Gemtext).
---
Previous in thread (2 of 9): 🗣️ Sean Conner (sean (a) conman.org)
Next in thread (4 of 9): 🗣️ Sean Conner (sean (a) conman.org)