diff --git a/build.sh b/build.sh index 7008b9e..33e50af 100755 --- a/build.sh +++ b/build.sh @@ -22,4 +22,15 @@ cp ./*.jpg favicon.ico ./site/. # build feed cp ./feed/feed.atom ./site/feed.atom -cp -a ./posts/. ./site/blog/. +# build posts +# cp -a ./posts/. ./site/blog/. +for dir in ~/code/stillgreenmossdotnet/posts/*/ +do + fulldir=${dir%*/} + shortdir=$(basename "$fulldir") + + mkdir -p ./site/blog/"$shortdir" + cp "$fulldir"/index.html ./site/blog/"$shortdir"/index.incomplete + cat head.html ./site/blog/"$shortdir"/index.incomplete foot.html > ./site/blog/"$shortdir"/index.html + rm ./site/blog/"$shortdir"/index.incomplete +done diff --git a/new-post.sh b/new-post.sh index 30d187a..dccfa94 100755 --- a/new-post.sh +++ b/new-post.sh @@ -3,8 +3,10 @@ mkdir -p ./posts # get name and url and other values we need -read -p "Title of blog post: " postTitle -read -p "URL string for blog post: " postUrl +printf "Title of blog post: " +read -r postTitle +printf "URL string for blog post: " +read -r postUrl fullUrl='https:\/\/stillgreenmoss\.net\/blog\/'"$postUrl" currentMonth=$(date +%B) currentYear=$(date +%Y) @@ -20,9 +22,8 @@ mkdir -p ./posts/"$postUrl" # prompt user for html for the post "${EDITOR:-vi}" ./posts/"$postUrl"/post.html -# make the post a page -cat head.html ./posts/"$postUrl"/post.html foot.html > ./posts/"$postUrl"/index.html -rm ./posts/"$postUrl"/post.html +# put post in the place it lives +mv ./posts/"$postUrl"/post.html ./posts/"$postUrl"/index.html ### update atom feed diff --git a/posts/diy-sms-ftw-vs-ig-fb-etc/index.html b/posts/diy-sms-ftw-vs-ig-fb-etc/index.html index 0f343c9..1499c51 100644 --- a/posts/diy-sms-ftw-vs-ig-fb-etc/index.html +++ b/posts/diy-sms-ftw-vs-ig-fb-etc/index.html @@ -1,29 +1,3 @@ - - -
- - - - -november 17th 2023
@@ -49,11 +23,3 @@if you know of something like this that already exists, please send me an email!
i'm really excited and i hope it works out :)
- -see ya later
- -december 15th, 2023
@@ -55,11 +29,3 @@i came back, and actually i think this post is done
- -see ya later
- -september 30th 2023
my name is maren. i use she or they pronouns and i'm a trans woman. i don't want to write about that here but i want to name it so that other transfems see me when they find me, because i like to see them when i find them too.
@@ -34,11 +9,3 @@i'm inspired by cooperativism and anarchism and permacomputing and diy culture and other things too.
i help firestorm coop with tech things, and i do computer for fun with a scrappy gay cohort calling ourselves bunk computer club.
- -see ya later
- -february 18th 2024
@@ -32,10 +6,3 @@i did this for something recently and it was really fun. i put some example code in git which you can look at here
-see ya later
- -december 27th 2023
@@ -68,11 +42,3 @@see ya later
- -