Is there a Hugo command to create page bundle?

I have a small bash script to help with that:

 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

The usage is ./new post $title

3 Likes