a gemlog management utility
gemlog.sh | ||
LICENSE | ||
README.md |
gemlog.sh
I've migrated the code to sourcehut. An archive of the code will remain in this repo, but it will no longer be updated. View the newest code here
To migrate your clone to the new repo, run:
git remote set-url origin https://git.sr.ht/~nytpu/gemlog.sh
git pull
Utility for writing and managing gemini logs (gemlogs) and atom feeds without needing a cgi script.
Dependencies:
other than toot
you really should have all these installed if you're on linux.
bash
and all its goodies (duh)perl
date
tr
sed
- the toot cli — only if you're using the automatic mastodon toot functionality
To install:
- put it wherever you want and just add it to path
- make sure you modify
make_globals()
andbuild_entries()
in the script to customize it to your gemlog.
To use:
- Write your post in .gmi format. The first header of any level on the page
will be used as a title (it doesn't have to be on the first line). The
script will detect any .gmi files that start with a number and assume
they're blog posts. It'll display them in reverse alphabetical order, so I
recommend to name your files like
YYYY-MM-DD.gmi
orYYYY-MM-DD-title-here.gmi
so you get them sorted nicely in reverse chronological order. - make sure you're in your gemlog directory then run
gemlog.sh
to build the index page and the atom feed - if you want your atom feed to be accessible over the web as well as gemini, symlink the atom.xml file to your web server directory