about summary refs log tree commit diff
path: root/newpost.sh
diff options
context:
space:
mode:
Diffstat (limited to 'newpost.sh')
-rwxr-xr-xnewpost.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/newpost.sh b/newpost.sh
deleted file mode 100755
index cc1025b..0000000
--- a/newpost.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-printf "Blog title: "
-read title
-printf "Tags: "
-read tags
-printf "Categories: "
-read categories
-printf "Ref: "
-read ref
-name="_posts/$(date -I)-${ref}.md"
-_date=$(date "+%Y-%m-%d %T %z")
-echo $name
-echo "---" > "$name"
-echo "layout: post" >> "$name"
-echo "title:  \"$title\"" >> "$name"
-echo "date:   $_date" >> "$name"
-echo "tags:   $tags" >> "$name"
-echo "categories: $categories" >>"$name"
-echo "lang: en" >>"$name"
-echo "ref:    $ref" >>"$name"
-echo "---" >> "$name"
-vim $name