This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#---------/---------------------\---------# | |
#--------|- Jekyll Post Creator -|--------# | |
#---------\---------------------/---------# | |
# Ripped and tweaked from https://gist.github.com/kabrooski/6107707 | |
# Simply put the script in your site directory, edit the configs to fit your setup, and run it with: | |
# ./post "post title" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATE=$(date '+%Y-%m-%d') | |
DATETIME=$(date '+%Y-%m-%d %H:%M') | |
POSTS_DIR="./_posts/" | |
DRAFTS_DIR="./_drafts/" | |
IMAGES_BASE_DIR="./images/" | |
for arg in "$@"; do | |
case $arg in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 1 ] ; then | |
echo "Usage: $0 <title>" >&2 | |
exit 1 | |
fi | |
title=`echo "$1" |sed 's/ /-/g'` | |
fileName="_posts/`date +%Y-%m-%d-$title.markdown`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Katie Harron - @pibby | |
# This bash script will setup a new Jekyll blog post in Markdown and open it for editing in Sublime Text 2 | |
echo "Post Title: " | |
read title | |
echo "Post Description: " | |
read desc | |
echo "Post Tags: " | |
read tags |