summaryrefslogtreecommitdiffstats
path: root/blog/newblog
diff options
context:
space:
mode:
authorsquibid <me@zacharyscheiman.com>2023-03-11 15:01:56 -0500
committersquibid <me@zacharyscheiman.com>2023-03-11 15:01:56 -0500
commitd99696640c16738a33123114db94a073ac24ad0a (patch)
tree3791756021587c63085308af32cfae2e71a75319 /blog/newblog
parent2ca0d8d3fb9420ac2158eff74d2f657a4382e649 (diff)
downloadsite-d99696640c16738a33123114db94a073ac24ad0a.tar.gz
site-d99696640c16738a33123114db94a073ac24ad0a.tar.bz2
site-d99696640c16738a33123114db94a073ac24ad0a.zip
add blog generator + rss feed/feed generator
Diffstat (limited to 'blog/newblog')
-rwxr-xr-xblog/newblog8
1 files changed, 8 insertions, 0 deletions
diff --git a/blog/newblog b/blog/newblog
new file mode 100755
index 0000000..da0def9
--- /dev/null
+++ b/blog/newblog
@@ -0,0 +1,8 @@
+#!/bin/sh
+# generate a base blog file
+
+read -p "Enter name of blog: " name
+filename="$(echo $name | sed 's/ /-/g').html"
+printf "<title>$name</title>\n<link rel="stylesheet" href="style.css">\n<body>\n<p>\n</p>\n</body>" > $filename
+$EDITOR $filename
+echo "Make sure to run sup to add to rss feed!"