You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/config/README.md
+14
Original file line number
Diff line number
Diff line change
@@ -249,4 +249,18 @@ It will be enabled when `endpoint` is provided. e.g.
249
249
```
250
250
[vuepress-plugin-mailchimp](https://vuepress-plugin-mailchimp.billyyyyy3320.com/) is how we implement the feature. This config will be pass directly to it, so please head [vuepress-plugin-mailchimp](https://vuepress-plugin-mailchimp.billyyyyy3320.com/#config) for more details.
251
251
252
+
## feed
252
253
254
+
- Type: `object`
255
+
- Default: `{}`
256
+
- Required: `false`
257
+
258
+
It will be enabled when `canonical_base` is provided. e.g.
259
+
260
+
```js
261
+
{
262
+
canonical_base:'https://yoursite'
263
+
}
264
+
```
265
+
266
+
All the generated files will be placed under your output directory. If you wish to make further configuration, please check out [vuepress-plugin-feed](https://github.com/webmasterish/vuepress-plugin-feed).
Copy file name to clipboardExpand all lines: docs/guide/getting-started.md
+23
Original file line number
Diff line number
Diff line change
@@ -460,6 +460,29 @@ In your theme, You'll probably offer users options whether to enable or not. You
460
460
461
461
Please head [UI-customization](https://vuepress-plugin-mailchimp.billyyyyy3320.com/#ui-customization) if you don't like the default UI.
462
462
463
+
## Feed
464
+
465
+
Feed is another approach to allow your users to get your latest content. RSS, Atom, and even JSON feeds are the right tools for the job. Let's see an example:
466
+
467
+
```JavaScript
468
+
// .vuepress/config.js
469
+
module.exports= {
470
+
plugins: [
471
+
[
472
+
'@vuepress/blog',
473
+
{
474
+
feed: {
475
+
canonical_base:'http://yoursite',
476
+
},
477
+
},
478
+
],
479
+
],
480
+
}
481
+
```
482
+
483
+
After building, you'll be able to find them (`rss.xml`, `feed.atom`, `feed.json`) in you output directory (`dist`).
484
+
485
+
463
486
## Examples
464
487
465
488
There're some [examples](https://github.com/vuepressjs/vuepress-plugin-blog/tree/master/examples) under this project help us test this plugin. They're also simplest examples for you after reading all the concept above.
0 commit comments