paritybit.ca

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

commit 93f5616cb4023deccea015997d041922245775d3
parent f7e539e967e45b515896f06bb7f753c43748af13
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat, 23 May 2020 22:41:57 -0400

Add strict flag to home page compilation

Diffstat:
Mpublish | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/publish b/publish @@ -53,7 +53,9 @@ if [ ! -x "$(command -v ed)" ]; then exit 3 fi -# Make sure that there is an up-to-date compiled version of the page + +# Populate the [DATE] fields of the page +sed -i "s/\[DATE\]/$miniDate/g" "$1" ./compile "$1" # Update the main blog list page @@ -66,7 +68,8 @@ pages/"$basePage".md > tmp.md && mv tmp.md pages/"$basePage".md # Update the home page to show the new published article and remove oldest entry sed -i "/<\/div>/a $miniDate \<a class=\"feed-item\" href=\"$basePage\/$filename\"\>$pageTitle\<\/a\>\n" pages/home.md ed -s pages/home.md <<< $'8,$g/### What is a Parity Bit/-2,-1d\nw' -./compile pages/home.md + +./compile -s pages/home.md tput setaf 3; tput bold; tput smul @@ -140,11 +143,13 @@ tput sgr0 # Post a status update on Mastodon linking to the new blog post printf " Posting about it on Mastodon... " -accessToken="<TOKEN_HERE>" +accessToken="<ACCESS_TOKEN>" status="$(cat << END New Blog Post: $(head -n 1 $1 | cut -d" " -f 2-) $baseURL/$filename + +#100DaysToOffload END )" uniqueId="$(md5sum <<< $status | awk '{print $1}')"