From: Mark Szymanski Date: Sun, 28 Nov 2010 18:37:31 +0000 (-0600) Subject: Added Link post type. X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=835bcabf04f405dc97b7082f7d49d7f5cc87e5cd;p=common%2Fbash_it.git Added Link post type. --- diff --git a/plugins/jekyll.plugins.bash b/plugins/jekyll.plugins.bash index 9b0d5c1..3ad9d0d 100644 --- a/plugins/jekyll.plugins.bash +++ b/plugins/jekyll.plugins.bash @@ -12,7 +12,7 @@ newpost() { # If the user is using markdown formatting, let them choose what type of post they want. Sort of like Tumblr. - OPTIONS="Text Quote Image Audio Video" + OPTIONS="Text Quote Image Audio Video Link" if [ $JEKYLL_FORMATTING = "markdown" -o $JEKYLL_FORMATTING = "textile" ] then @@ -47,6 +47,12 @@ newpost() { POST_TYPE="Video" break fi + + if [[ $OPTION = "Link" ]] + then + POST_TYPE="Link" + break + fi done fi @@ -122,6 +128,15 @@ newpost() { then echo "" >> $FNAME fi + + if [[ $POST_TYPE = "Link" ]] + then + echo "[link][1]" >> $FNAME + echo >> $FNAME + echo "> Quote" >> $FNAME + echo >> $FNAME + echo "[1]: url" >> $FNAME + fi fi if [[ $JEKYLL_FORMATTING = "textile" ]] @@ -152,6 +167,13 @@ newpost() { then echo "" >> $FNAME fi + + if [[ $POST_TYPE = "Link" ]] + then + echo "\"Site\":url" >> $FNAME + echo >> $FNAME + echo "bq. Quote" >> $FNAME + fi fi # Open the file in your favorite editor