Next: Feature Friday for Gerbil
Previous: Setting up my gemlog
17 September 2021
For some reason, gemini-fetch isn't able to fetch antenna's submit page so we can automatically submit new posts. Now, I'll just construct the url and start bombadillo, it will only be a minor inconvenience to close it when I'm done.
The updated bash function (added to .bash_aliases):
gemlog() {
slug_name=$(echo "$1" | sed -e "s/[^A-Za-z0-9._-]/_/g")
new_gemlog_file=~/.gloggery/posts/$(date -u +%Y-%m-%d-%H%M)-$slug_name
$EDITOR "$new_gemlog_file"
echo -e "$1\n\n$(cat "$new_gemlog_file")" > "$new_gemlog_file"
~/bin/gloggery -title "Armen's gemlog" -output ~/public_gemini/gemlog -url "gemini://envs.net/~armen/gemlog"
encoded_url=$(node -e "console.log(encodeURIComponent('gemini://envs.net/~armen/gemlog/atom.xml'));")
bombadillo "gemini://warmedal.se/~antenna/submit?$encoded_url"
}