~jbauer/paritybit.ca

19049f6b35d5fb47d93545972c44338cc6e31fd5 — Jake Bauer 3 days ago 8121257 master
Update script for Gemini publishing
1 files changed, 5 insertions(+), 2 deletions(-)

M http/publish
M http/publish => http/publish +5 -2
@@ 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 ""