Skip to content

Instantly share code, notes, and snippets.

@heatherbooker
heatherbooker / jekyll-new
Last active March 9, 2017 05:05 — forked from xianny/jekyll-new
jekyll-new-post
#!/bin/bash
# This script creates a new post or draft in jekyll with pre-filled front matter.
# Run `./script <some title for your post>` to generate a post.
# Use `-d` option (BEFORE your post title) for a draft.
FILEDIR="_posts/"
ISDRAFT=false
while getopts "d" opt; do
case $opt in