summaryrefslogtreecommitdiffstats
path: root/blog/newblog
diff options
context:
space:
mode:
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!"