paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 19049f6b35d5fb47d93545972c44338cc6e31fd5
parent 812125772b597cd700260d8defe8e16e64bfb25f
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 30 Nov 2020 01:33:33 -0500

Update script for Gemini publishing

Diffstat:
Mhttp/publish | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/http/publish b/http/publish @@ -195,8 +195,11 @@ auto_post() print_info_msg "Generating social media post" meta="$(head -n3 "$file" | tail -n1 \ | cut -d'#' -f2 | sed -e 's/^[[:space:]]*//')" - printf "New Blog Post: %s\n\n%s/%s\n\n%s\n\n#100DaysToOffload" \ - "$pageTitle" "$baseURL" "$fileName" "$meta" > /tmp/status.txt + gmiBaseURL="$(echo "$baseURL" | sed 's/https:\/\/www\./gemini:\/\//')" + gmiFileName="$(echo "$fileName" | sed 's/$/.gmi/')" + printf "New Blog Post: %s\n\n%s/%s\n%s/%s\n\n%s" \ + "$pageTitle" "$baseURL" "$fileName" "$gmiBaseURL" "$gmiFileName" \ + "$meta" > /tmp/status.txt uniqueId="$(md5sum /tmp/status.txt | awk '{print $1}')" echo ""