Skip to content

twhite96/gatsby-starter-blog-new-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published