gatsby-starter-hero-blog
gatsby-starter-hero-blog copied to clipboard
Automating the creation of the post directory
I plan to write my posts via PRs, every time I need to add a post, I need to create a post directory, index.md etc. I thought it would be a good idea to automate this to a certain extent. What do you think ?
New Command:
npm run post [post-tile]
Example usage:
npm run post the-latest-and-greatest
this creates a directory inside posts named 2018-11-18--the-latest-and-greatest
with an index.md file inside of it containing:
---
title:''
cover:''
author:''
---
Sounds awesome! :thumbsup: