docs: @vuepress/plugin-blog

This commit is contained in:
ULIVZ
2018-11-02 11:31:13 +08:00
parent e20d64cc25
commit 83cdc8b33e
4 changed files with 63 additions and 26 deletions
+1 -25
View File
@@ -1,31 +1,7 @@
# @vuepress/plugin-blog
> theme plugin for vuepress
> blog plugin for vuepress
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/blog']
}
```
## Options
### pageEnhancers
- Type: `function`
- Default: `/i18n/`
### categoryIndexPageUrl
- Type: `string`
- Default: `/category/`
### tagIndexPageUrl
- Type: `string`
- Default: `/tag/`
+2 -1
View File
@@ -127,7 +127,8 @@ function getPluginSidebar (pluginTitle, pluginIntro, officialPluginTitle) {
collapsable: false,
children: [
'official/plugin-search',
'official/plugin-pwa'
'official/plugin-pwa',
'official/plugin-blog',
]
}
]
@@ -0,0 +1,30 @@
# @vuepress/plugin-blog
> Blog plugin.
## Install
```bash
yarn add -D @vuepress/plugin-blog
# OR npm install -D @vuepress/plugin-blog
```
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/blog']
}
```
## Options
### categoryIndexPageUrl
- Type: `string`
- Default: `/category/`
### tagIndexPageUrl
- Type: `string`
- Default: `/tag/`
@@ -0,0 +1,30 @@
# @vuepress/plugin-blog
> Blog plugin.
## Install
```bash
yarn add -D @vuepress/plugin-blog
# OR npm install -D @vuepress/plugin-blog
```
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/blog']
}
```
## Options
### categoryIndexPageUrl
- Type: `string`
- Default: `/category/`
### tagIndexPageUrl
- Type: `string`
- Default: `/tag/`