new-post-gatsby-starter-blog

1.2.9 • Public • Published

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.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i new-post-gatsby-starter-blog

    Weekly Downloads

    0

    Version

    1.2.9

    License

    MIT

    Unpacked Size

    4.21 kB

    Total Files

    4

    Last publish

    Collaborators

    • twhite96