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 @@ - - - - - - - -still, green moss - - -
-

thiss moss iss still greenn

-

home | blog | links | now | feed

-
-
- venus flytraps and moss -
-
- a coastal pine savannah forest -
-
- a cluster of pitcher plants -
-
-
-

diy sms ftw vs ig, fb, etc.

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

-

cc0

-
- - - diff --git a/posts/im-thinking-about-something-but-i-dont-know-what-yet/index.html b/posts/im-thinking-about-something-but-i-dont-know-what-yet/index.html index bbc3d92..6ee8aad 100644 --- a/posts/im-thinking-about-something-but-i-dont-know-what-yet/index.html +++ b/posts/im-thinking-about-something-but-i-dont-know-what-yet/index.html @@ -1,29 +1,3 @@ - - - - - - - -still, green moss - - -
-

thiss moss iss still greenn

-

home | blog | links | now | feed

-
-
- venus flytraps and moss -
-
- a coastal pine savannah forest -
-
- a cluster of pitcher plants -
-
-
-

i'm thinking about something but i don't know what yet

december 15th, 2023

@@ -55,11 +29,3 @@

i came back, and actually i think this post is done

- -
-

see ya later

-

cc0

-
- - - diff --git a/posts/init/index.html b/posts/init/index.html index 53d1f49..d9e02ce 100644 --- a/posts/init/index.html +++ b/posts/init/index.html @@ -1,30 +1,5 @@ - - - - - - - -still, green moss - - -
-

thiss moss iss still greenn

-

home | blog | links | now | feed

-
-
- venus flytraps and moss -
-
- a coastal pine savannah forest -
-
- a cluster of pitcher plants -
-
-
-

init

+

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

-

cc0

-
- - - diff --git a/posts/presentation-dot-sh/index.html b/posts/presentation-dot-sh/index.html index 8e9399f..4933d9b 100644 --- a/posts/presentation-dot-sh/index.html +++ b/posts/presentation-dot-sh/index.html @@ -1,29 +1,3 @@ - - - - - - - -still, green moss - - -
-

thiss moss iss still greenn

-

home | blog | links | now | feed

-
-
- venus flytraps and moss -
-
- a coastal pine savannah forest -
-
- a cluster of pitcher plants -
-
-
-

presentation.sh

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

-

cc0

-
- - - diff --git a/posts/things-i-am-thankful-for-from-2023/index.html b/posts/things-i-am-thankful-for-from-2023/index.html index 061647e..47f3a7e 100644 --- a/posts/things-i-am-thankful-for-from-2023/index.html +++ b/posts/things-i-am-thankful-for-from-2023/index.html @@ -1,29 +1,3 @@ - - - - - - - -still, green moss - - -
-

thiss moss iss still greenn

-

home | blog | links | now | feed

-
-
- venus flytraps and moss -
-
- a coastal pine savannah forest -
-
- a cluster of pitcher plants -
-
-
-

things i am thankful for from 2023

december 27th 2023

@@ -68,11 +42,3 @@
  • the faggots and their friends between revolutions, mitchell
  • - -
    -

    see ya later

    -

    cc0

    -
    - - -