3.4.0 • Published 5 months ago
@cieloazul310/gatsby-theme-aoi-blog v3.4.0
@cieloazul310/gatsby-theme-aoi-blog
Gatsby Blog Theme built with Gatsby Theme Aoi
Usage
Install
npm install @cieloazul310/gatsby-theme-aoi @cieloazul310/gatsby-theme-aoi-blog
Configuration
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: `@cieloazul310/gatsby-theme-aoi`,
options: {
siteId: `gatsby-aoi-blog`,
},
},
{
resolve: `@cieloazul310/gatsby-theme-aoi-blog`,
options: {
// contentPath: `content`,
// assetPath: `content/assets`,
// postsPerPage: 15,
// basePaths: {
// posts: '/posts',
// category: '/category',
// tag: '/tag',
// author: '/author',
// },
// excerptLength: 140,
// imageMaxWidth: 1380,
// gatsbyRemarkPlugins: [
// any remark plugins
// ],
},
}
],
};
Plugin options
option | type | default |
---|---|---|
contentPath | string | "content" |
assetPath | string | "content/assets" |
postsPerPage | number | 15 |
excerptLength | number | 140 |
imageMaxWidth | number | 1380 |
gatsbyRemarkPlugins | Array of GatsbyRemarkPlugin | [] |
CLI
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"
CLI 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"
3.4.0
5 months ago
3.3.0
6 months ago
3.2.2
1 year ago
3.2.1
1 year ago
3.2.0
1 year ago
3.1.1
1 year ago
3.1.0
1 year ago
3.0.1
1 year ago
3.2.3
1 year ago
3.0.0
1 year ago
2.11.0
1 year ago
2.10.1
1 year ago
2.9.1
1 year ago
3.0.0-alpha.6
2 years ago
2.9.3
1 year ago
3.0.0-alpha.1
2 years ago
3.0.0-alpha.0
2 years ago
3.0.0-alpha.3
2 years ago
3.0.0-alpha.2
2 years ago
2.9.0
1 year ago
3.0.0-alpha.4
2 years ago
2.6.1
2 years ago
2.4.1
2 years ago
2.1.4
2 years ago
2.1.3
2 years ago
2.4.2
2 years ago
2.1.5
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
2.0.0
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.7.0
2 years ago