From 15c85716b2c22cd7aac616d1b46756a5736b6d52 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Sun, 9 Apr 2023 15:44:31 -0400 Subject: Create a bash script to publish gemlogs This script and configuration enables users to simply publish a gemtext file and modify their index file with the link. The readme.txt goes into how this will work. Error codes are also noted. The basic usage is built around how my capsule is laid out - so I have an index file at: gemini://senders.io/gemlog/ that uses a descending post order. This is useful for folks so the most recent post is at the top. But index files can be disabled - but if you're doing that then you're basically just using scp :) which I'd say write your own bash script for! --- config.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 config.sh (limited to 'config.sh') diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..faefbb1 --- /dev/null +++ b/config.sh @@ -0,0 +1,12 @@ +GEMPOST_SSH_HOST= +GEMPOST_REMOTE_PATH= + +# Optional configs +# GEMPOST_REMOTE_POST_PROCESS= + +# 0 disabled | 1 enabled +GEMPOST_INDEX_ON=0 +GEMPOST_REMOTE_INDEX_FILE= +GEMPOST_INDEX_LINK_PREFIX= +## This will be defaulted to ~/.local/share/gempost/index-previous-entry.txt +# GEMPOST_PREVIOUS_TITLE_FILE= -- cgit v1.2.3-54-g00ecf