Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (21 sloc) 1.72 KB

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.