gatsby-starter-hero-blog icon indicating copy to clipboard operation
gatsby-starter-hero-blog copied to clipboard

Automating the creation of the post directory

Open GregBorrelly opened this issue 6 years ago • 1 comments

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:''
---

GregBorrelly avatar Nov 19 '18 02:11 GregBorrelly

Sounds awesome! :thumbsup:

shiruken1 avatar Feb 23 '19 20:02 shiruken1