npm script to create new post in Gatsby Starter Blog. Shout out to @joelhooks
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

New Post Scaffold for Gatsby Starter Blog

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.

Usage

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.

Issues?

See Issues.

Suggestions?

Submit an issue or PR.

LICENSE: MIT.