Remove unneccessary blog post script.

This commit is contained in:
David Tomaschik
2016-03-27 13:25:17 -07:00
parent 997b27dd19
commit 4cb6be69e0

View File

@@ -1,21 +0,0 @@
if [ -d $HOME/Projects/blog/_posts ] ; then
function new_blog_post {
if [ $# -ne 1 ] ; then
echo "Usage: $0 <title>"
return 1
fi
WHEN=`date +%Y-%m-%d`
SLUG=$(echo -n $1|tr A-Z a-z|tr -c -s -- a-z -)
POSTS="${HOME}/Projects/blog/_posts"
FNAME="${POSTS}/${WHEN}-${SLUG}.md"
cat <<EOF >${FNAME}
---
layout: post
title: "${1}"
date: ${WHEN}
category: BLAH
---
EOF
vi ${FNAME}
}
fi