1.0.4 • Published 6 years ago
gatsby-new-blog v1.0.4
gatsby-new-blog
new blog for your gatsby site.
screenshots
install
$ yarn add gatsby-new-blog --dev
Usage
update package.json
{
"scripts": {
"new-blog": "gatsby-new-blog start"
}
}
just run yarn run new-blog
, you will enjoy, if you add global
when install, you can use gatsby-new-blog start
instead.
config config/default.yml
header
and question
is required, if you would love to add a picture
such as cover, put it in static/
.
blog:
header: "fswq's blog"
picture: 'header.jpeg'
info: '❤️ hello, fswq, welcome back!'
warning: '⚠️ :The default size of cover image is 1200 * 600 in px'
question:
title:
type: 'input'
name: 'title'
default: 'How JavaScipt can do this'
message: 'blog title'
original:
type: 'confirm'
name: 'original'
default: true
message: 'is original'
tag:
type: 'checkbox'
name: 'tag'
default: ['Front-End']
message: 'blog tag'
choices: ['Front-End','NodeJS','Visualization']
pageSize: 10
With reference to the screenshots
above, you can know the meaning of each configuration item, and what need to be remind is the config of question which you should follow inquirer.
LICENSE
MIT@fengshangwuqi