diff --git a/blog/It's-Alive!.html b/blog/It's-Alive!/index.html
similarity index 100%
rename from blog/It's-Alive!.html
rename to blog/It's-Alive!/index.html
diff --git a/blog/What-is-a-squibid/index.html b/blog/What-is-a-squibid/index.html
new file mode 100644
index 0000000..39daa3c
--- /dev/null
+++ b/blog/What-is-a-squibid/index.html
@@ -0,0 +1,20 @@
+
+
+
+
'What is a squibid?'
+
+
+
+
+ Recently, a few people have been asking me: "what is a squibid?" or
+ "where did your name come from?". In this blog post I will answer those
+ questions.
+
+
+ A few years ago I came up with a drawing of an animal
+ reason to do anything with it, but regardless I chose to name it a
+ squibid. Eventually, when trying to find a good username I chose squibid
+ because that would cover both the username and profile picture.
+
+
+
diff --git a/blog.php b/blog/index.php
similarity index 61%
rename from blog.php
rename to blog/index.php
index bcf1767..d60a42d 100644
--- a/blog.php
+++ b/blog/index.php
@@ -20,23 +20,12 @@
subscribe
diff --git a/blog/librex-and-dots.html b/blog/librex-and-dots/index.html
similarity index 100%
rename from blog/librex-and-dots.html
rename to blog/librex-and-dots/index.html
diff --git a/blog/newblog b/blog/newblog
index ea69701..4ab27ba 100755
--- a/blog/newblog
+++ b/blog/newblog
@@ -1,23 +1,29 @@
#!/bin/sh
# generate a base blog file
-read -p "Enter name of blog: " name
-filename="$(echo $name | sed 's/ /-/g').html"
+printf "Enter name of blog entry: "
+read -r name
+filename="$(echo "$name" | sed 's/ /-/g')"
-# make sure we don't overwrite an existent file
-[ -f $filename ] &&
- printf "File already exists! Please choose a different filename.\n"; exit 1
+# make sure we don't overwrite an existing file
+if [ -f "$filename" ]; then
+ printf "Blog entry already exists! Please choose a different name.\n"
+ exit 1
+fi
-printf '
+mkdir "$filename"
+cat > "$filename/index.html" << EOF
+
- '$name'
+ '$name'
+
-' > $filename
-$EDITOR $filename
+EOF
+[ "$EDITOR" ] && $EDITOR "$filename/index.html" || vim "$filename/index.html"
echo "Make sure to run sup to add to rss feed!"
diff --git a/blog/rss.xml b/blog/rss.xml
index 2dd53ad..3654882 100644
--- a/blog/rss.xml
+++ b/blog/rss.xml
@@ -11,10 +11,38 @@
+
+What is a squibid?
+https://squi.bid/blog/What-is-a-squibid/index.html
+https://squi.bid/blog/What-is-a-squibid/index.html
+Mon, 30 Oct 2023 12:47:05 -0400
+
+
+
+ 'What is a squibid?'
+
+
+
+
+ Recently, a few people have been asking me: "what is a squibid?" or
+ "where did your name come from?". In this blog post I will answer those
+ questions.
+
+
+ A few years ago I came up with a drawing of an animal
+ reason to do anything with it, but regardless I chose to name it a
+ squibid. Eventually, when trying to find a good username I chose squibid
+ because that would cover both the username and profile picture.
+
+
+]]>
+
+
+
librex and dots
-https://squi.bid/blog/librex-and-dots.html
-https://squi.bid/blog/librex-and-dots.html
+https://squi.bid/blog/librex-and-dots
+https://squi.bid/blog/librex-and-dots
Tue, 27 Jun 2023 12:17:35 -0400
@@ -43,8 +71,8 @@ feel free to email me.
It's Alive!
-https://squi.bid/blog/It's-Alive!.html
-https://squi.bid/blog/It's-Alive!.html
+https://squi.bid/blog/It's-Alive!
+https://squi.bid/blog/It's-Alive!
Mon, 17 Apr 2023 13:22:03 +0000
@@ -58,8 +86,8 @@ feel free to email me.
state of the site
-https://squi.bid/blog/state-of-the-site.html
-https://squi.bid/blog/state-of-the-site.html
+https://squi.bid/blog/state-of-the-site
+https://squi.bid/blog/state-of-the-site
Sat, 11 Mar 2023 15:00:32 -0500
diff --git a/blog/state-of-the-site.html b/blog/state-of-the-site/index.html
similarity index 100%
rename from blog/state-of-the-site.html
rename to blog/state-of-the-site/index.html
diff --git a/index.php b/index.php
index c20508e..09badc6 100644
--- a/index.php
+++ b/index.php
@@ -64,24 +64,9 @@