if [[ $1 = "post" ]]; then
#statements
# POSTS
export SLUG=$2
DATE=`date "+%Y-%m-%d"`
hugo new post/$DATE-$SLUG/index.md
mkdir -p content/post/$DATE-$SLUG/gallery;
mkdir -p content/post/$DATE-$SLUG/images/;
open content/post/$DATE-$SLUG/; subl content/post/$DATE-$SLUG/; cd content/post/$DATE-$SLUG/;
fi
THIS is what I was looking for. Thank you. I did something similar, but was struggling with the data format and how to put things into the right places.
The idea of generating the other directories as well is just brilliant. The script works nice and is easily extendable.