💾 Archived View for tilde.club › ~mot › notes › meta.gmi captured on 2023-01-29 at 04:13:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

Home

Notes

Notes on this Gemini site

Content

Writing & Publishing

Publishing Script

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.

Useful Things

View local capsule without needing a server:

Gopher & Gemini Walker

Syntax highlighting for vim:

gemini.vim

Website generation:

gmi-web

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"

TODO

Submit atom feed for log:

Geminispace known feeds