Skip to content

Instantly share code, notes, and snippets.

View jessicacarneiro's full-sized avatar

Jéssica Carneiro jessicacarneiro

View GitHub Profile
@jessicacarneiro
jessicacarneiro / create-jekyll-post.sh
Last active March 18, 2016 00:00 — forked from mviitanen/create-jekyll-post.sh
A shell script to create a new jekyll post. Maybe there is an easier way, but this script generates a basic markdown post for jekyll. It has head matter, samples of some common formatting, and a link to a more complete documentation of the format.
#!/bin/zsh
# Modified Gist https://gist.github.com/jessicacarneiro/ed9e197841cd4ade1ac5
if [ "$#" -ne 1 ] ; then
echo "Usage: $0 <title>" >&2
exit 1
fi
title=`echo "$1" |sed 's/ /-/g'`