Skip to content
📰 cli script for creating markdown posts using core nodejs (no deps)
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.
.gitignore
LICENSE
README.md
newpost.js
package.json

README.md

gatsby-new-post-cli

CLI script for creating markdown posts using core nodejs features.

No extra dependencies required.

More detailed information can be found on my blog article: Gatsby New Post CLI Script

License: MIT

Requirements

  • NodeJS

Usage

Place the script into the base directory your gatsby project.

Check your posts folder is configured correctly (change blogPostFolder if required)

Execute script & fill out the Post Title

$ ./newpost.js
Post Title:

The script should create a markdown file with frontmatter filled out.

$ ./newpost.js
Post Title:test
Post test was created successfully
Location: ./content/posts/2019-07-09-test.md

Contact

Website: https://equk.co.uk

Twitter: @equilibriumuk

You can’t perform that action at this time.