Skip to content

Instantly share code, notes, and snippets.

@acairns

acairns/publish

Created Jan 5, 2014
Embed
What would you like to do?
Bash script to publish Jekyll post from _drafts into _posts
#!/bin/sh
if [ -z "$1" ]
then
echo "No draft file found"
exit
fi
mv $1 _posts/`date +"%Y-%m-%d"`-`basename $1`
@MartinThoma

This comment has been minimized.

Copy link

@MartinThoma MartinThoma commented Jan 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment