@cieloazul310/gatsby-theme-aoi-blog-cli
v3.4.0
Published
CLI package for Gatsby Theme Aoi Blog
Downloads
33
Readme
@cieloazul310/gatsby-theme-aoi-blog-cli
CLI package for Gatsby Theme Aoi Blog
Usage
npm pkg set scripts.post="gatsby-aoi-blog new post"
npm run post "New page title"
# => Generate "/content/posts/2022/02/new-page-title.md"
Options
| option | type | default |
|---------------------|-----------------------------|--------------------|
| -a, --author | string | Unknown Author
|
| -d, --date | string (Datestring) | new Date().toISOString()
|
| --canonical | boolean | false
|
| --mdx | boolean | false
|
Examples
# date option
npm run post "New page title" --date 2022-01-01
# => Generate "/content/posts/2022/01/new-page-title.md"
# canonical option
npm run post "New page title" --canonical
# => Generate "/content/posts/2022/02/new-page-title/index.md"
# mdx option
npm run post "New page title" --mdx
# => Generate "/content/posts/2022/02/new-page-title.mdx"