A cli tool to create a new post and frontmatter for Gatsby Starter Blog
Joel Hooks, creator of egghead.io wrote a post on automating new posts for Gatsby with a basic npm script.
My script is basically his, with minor modifications; I'm using markdown here and the frontmatter format for this script is specifically for Gatsby Starter Blog. For an idea of how that starter is setup, checkout my TWBlog repo's src directory.
Open your terminal of choice and do the following:
npm install --global new-post-gatsby-starter-blog
then run
cd [your directory]
new-post "Title of post"
This will create a new post with the frontmatter scaffold appropriate for this starter.
See Issues.
Submit an issue or PR.
LICENSE
: MIT.