Added Link post type.
parent
6cf9a4b03c
commit
835bcabf04
|
|
@ -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.
|
# 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" ]
|
if [ $JEKYLL_FORMATTING = "markdown" -o $JEKYLL_FORMATTING = "textile" ]
|
||||||
then
|
then
|
||||||
|
|
@ -47,6 +47,12 @@ newpost() {
|
||||||
POST_TYPE="Video"
|
POST_TYPE="Video"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $OPTION = "Link" ]]
|
||||||
|
then
|
||||||
|
POST_TYPE="Link"
|
||||||
|
break
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -122,6 +128,15 @@ newpost() {
|
||||||
then
|
then
|
||||||
echo "<html><video src=\"/path/to/video\" controls=\"controls\"></video></html>" >> $FNAME
|
echo "<html><video src=\"/path/to/video\" controls=\"controls\"></video></html>" >> $FNAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $POST_TYPE = "Link" ]]
|
||||||
|
then
|
||||||
|
echo "[link][1]" >> $FNAME
|
||||||
|
echo >> $FNAME
|
||||||
|
echo "> Quote" >> $FNAME
|
||||||
|
echo >> $FNAME
|
||||||
|
echo "[1]: url" >> $FNAME
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $JEKYLL_FORMATTING = "textile" ]]
|
if [[ $JEKYLL_FORMATTING = "textile" ]]
|
||||||
|
|
@ -152,6 +167,13 @@ newpost() {
|
||||||
then
|
then
|
||||||
echo "<html><video src=\"/path/to/video\" controls=\"controls\"></video></html>" >> $FNAME
|
echo "<html><video src=\"/path/to/video\" controls=\"controls\"></video></html>" >> $FNAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $POST_TYPE = "Link" ]]
|
||||||
|
then
|
||||||
|
echo "\"Site\":url" >> $FNAME
|
||||||
|
echo >> $FNAME
|
||||||
|
echo "bq. Quote" >> $FNAME
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Open the file in your favorite editor
|
# Open the file in your favorite editor
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue