Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am laescalera on github.
  • I am laescalera (https://keybase.io/laescalera) on keybase.
  • I have a public key ASAOOJxw2Ekh6zwBGubUAlMojDTzalQtGxJ58ogjyuAGugo

To claim this, I am signing this object:

@laescalera
laescalera / scaffold_post
Created July 7, 2016 22:57 — forked from marcusoftnet/scaffold_post
Jekyll Post Scaffolder
#!/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"
@laescalera
laescalera / create_post.sh
Created July 7, 2016 22:54
A bash script to create a Jekyll post.
#!/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
@laescalera
laescalera / create-jekyll-post.sh
Created July 7, 2016 22:17 — 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/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`"
@laescalera
laescalera / jekyll-bash-new-post
Created July 7, 2016 22:15 — forked from pibby/jekyll-bash-new-post
This bash script will setup a new Jekyll blog post in Markdown and open it for editing in Sublime Text 2
#!/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