Skip to content

Instantly share code, notes, and snippets.

@zormit
zormit / jekyll-new
Last active Feb 22, 2017 — forked from xianny/jekyll-new
jekyll-new-post
View jekyll-new
#!/bin/bash
# This script creates a new post or draft in jekyll with pre-filled front matter
# ./script some title for your post
# use -d option for draft
FILEDIR="_posts/"
while getopts "d" opt; do
case $opt in
d)