gatsby-lumen-post-cli
v1.0.4
Published
Fancy post generator CLI for gatsby-lumen-starter
Downloads
2
Maintainers
Readme
gatsby-lumen-post-cli
Why?
gatsby-starter-lumen doesn't have post generator scripts or CLIs. Therefore, it is hard to generate new post and user has to make on his/her own. So, I made it for the better blogging.
Installation
:warning: You must install in your root folder
- npm
npm install gatsby-lumen-post-cli
- yarn
yarn add gatsby-lumen-post-cli
Assumption
This script assumes that post markdown files are located in /content/posts
like official folder structure. Accordingly, all posts have to be located in that directory, but subdirectory is fine.
Usage
- Start script
lumen-post
- Features
Category : choose existing one or add new category
Title : input title
Tags : choose existing ones and add new tags
When input multiple tags, delimiter is space(" ") . So, you have to input like below.
tag1 tag2
Description : input description
Date , slug , template are automatically inserted and draft is set as
false
When you finishes above works, post markdown file is created in content/posts/[category]
LICENSE
MIT