💾 Archived View for rawtext.club › ~sloum › geminilist › 000573.gmi captured on 2020-09-24 at 02:28:41. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Travis Briggs audiodude at gmail.com
Wed May 13 01:28:48 BST 2020
- - - - - - - - - - - - - - - - - - - ``` Hello, Thanks for the warm welcome in the other thread, solderpunk! I'm not sureif I read about Gemini on HN, but probably around the same time, being ontilde.club and other tildes. I just wanted to share some of the work I did to create the content forgemini://gem.bestalbumsintheuniverse.com. This site has existed for a number of years now, and probably isn't updatedas much as it should be (like all blogs of course). My intuition wasconfirmed by solderpunk's call to content in the other thread, thatGeminispace needs content that isn't about Gemini. So I thought I'd re-workmy album listings as .gmi files. You can see the whole source of the website here:https://github.com/audiodude/best-albums Currently I am running Jetforce, since I am primarily a Javascript andPython developer, though I have done Ruby as you can see in the repo linkedabove. The basic layout of the site is that it is a Jekyll site, but it usesadvanced features of Jekyll to create an albums.json file, which is thendynamically loaded by the Javascript of the frontend of the website. Forthe Gemini version, I decided to use Pandoc (https://pandoc.org/) toconvert from my markdown files into what is essentially plain text, butwith a custom template for putting a header hash and the like. Pandoc wasreally convenient for this because it automatically reads YAML"frontmatter" in Markdown files and makes them available in templates. I then wrote a simple script to take the albums.json file and generate anoverall index.gmi file for the site (write_gemini_index.rb). Finally thereis a Makefile that ties it all together and generates best-albums.tgz,which I then scp to the gemini host and copy to /var/gemini. While I think a general purpose Jekyll - > Gemini converter would be usefulfor people, I don't have any desire to attempt such a project based on 1)not wanting to use Ruby and 2) the fact that Jekyll isn't particularlyextensible. I wonder if there is a project to be created adding plugins forsome other popular static site generator (Hugo? Gatsby?) to output Geminicontent. Cheers,-Travis-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200512/0f387257/attachment.htm>