💾 Archived View for tilde.club › ~mot › notes › meta.gmi captured on 2024-05-12 at 18:17:58. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
Write a script that takes text files in gemtext format, adds header & footer, generates index, atom feed.
Example title-of-the-post.txt:
# Title of the Post 2022-11-01 Blah blah blah something whatever. => http://example.com Blah
Script grabs title and date, makes filename (cut, tr, &c.)
2022-11-01-title-of-the-post.gmi
and generates the index.gmi with links like this (which work as a feed in some/most clients?):
2022-11-01-title-of-the-post.gmi 2022-11-01 Title of the Post
and concatentates header.tmpl, *.txt, footer.tmpl, to make a gemlog post like this:
=> /~mot/ Home => /~mot/log/ Gemlog => /~mot/log/atom.xml Atom Feed # Title of the Post 2022-11-01 Blah blah blah something whatever. => http://example.com Blah Some fascinating writing about topics and subjects and such. => gemini://link-to-post Permalink => https://link-to-post Web version
and a web version, too.
View local capsule without needing a server:
Syntax highlighting for vim:
Website generation:
gemtext2md, plus a markdown to html thingy
rsync to tilde.club
rsync -az --delete "$HOME/Gemini/" mot@tilde.club:/home/mot/public_gemini
Publish an atom feed:
gemfeed --base gemini://tilde.club/~mot/notes/ --directory /home/mot/public_gemini/notes/ --author "Jack Mottram" gemfeed --base gemini://tilde.club/~mot/log/ --directory /home/mot/public_gemini/log/ --author "Jack Mottram"
Submit atom feed for log: