,---. ,--. ,--. ' .-' ,---.,--.--.`--' ,---. ,-' '-. ,---.
.-' |\ --.| | | || '-' ' | | .-'
)
`--'
I use some things to that when I enter "gemlog" in the terminal, I am able to title my log, tag it (with limited tags), and have a link to the new log populate in various places - the gemlog digest, the atom feed, and, if I have tagged it with something (e.g. 'cfa'), then it will be linked on that page too.
There are 4 things that make this work for me. First, a 'blank' atom feed, second a preformatted header .txt for the log, third a preformatted digest page and fourth a bash script.
I'll paste all of these below. The bash script could do with some optimisations. I learned more about sed so I reckon there's a good few lines and at least one variable that could be removed! It's all a learning process :D
=> This is the atom feed of all my Gemlogs.
These are handy for feed-readers etc - the Gemini browser Amphora has a feed-reader baked in that works really well. I have a link to Amphora in "links".
Below is the 'blank' feed I started with:
gemini://gemini.ctrl-c.club/~semaphore/gemlog/digest.gmi Semaphore's Gemlog 2021-03-15T00:00:00+00:00 gemini.ctrl-c.club/~semaphore semaphore@ctrl-c.club World's Shittest Script, by Semaphore
This is the header which is inserted to the top of gemlog we've just created:
This is the gemlog digest, which will have a link to the new entry inserted to the top of the list.
=> The digest file, again with entries added.
This is a copy of the bash script I run, obviously it has my filepaths etc.
Firstly, $backslashheaven was me ragequitting on a problem, but I've since learn more about sed so I'll get around to cleaning it up one day and update it here too. But not today! Basically, the script;
a) removing the </feed> at the end of the .xml, and removing the line timestamping when the feed was last updated;
b) adding an entry at the bottom of the .xml with all the necessary stuff - the title, actual location in the internet of the log, the date and other things;
c) re-adding the </feed> to the end of the .xml now that the new entry is in, and reinserting a new timestamp showing when the atom feed was updated (i.e. just now);
=> The digest page | Back to the main page This content has been proxied by September (ba2dc).Proxy Information
text/gemini;