0.4.3 • Published 2 years ago
saber-plugin-feed v0.4.3
saber-plugin-feed
Generate feed in Atom 1.0 or RSS 2.0 or JSON format.
Install
yarn add saber-plugin-feed
Usage
In your saber-config.yml
:
plugins:
- resolve: saber-plugin-feed
options:
# Generate atom.xml
atomFeed: true
# Generate rss2.xml
rss2Feed: true
# Generate feed.json
jsonFeed: true
Get Feed Links in Component
This plugin will also inject feed links as Vue computed property:
// Recommended feed, atom > rss2 > json
this.$feed
// { permalink: string, type: 'atom' | 'rss2' | 'json' }
this.$allFeeds
// { rss2?: string, json?: string, atom?: string }
Configure Feed Author
In your saber-config.yml
:
siteConfig:
author: Your Name # Optional
url: https://example.com # Required
email: you@email.com # Optional
Options
atomFeed
- Type:
string
boolean
- Default:
undefined
The output path of the Atom feed, when true
it outputs to atom.xml
.
rss2Feed
- Type:
string
boolean
- Default:
undefined
The output path of the RSS2 feed, when true
it outputs to rss2.xml
.
jsonFeed
- Type:
string
boolean
- Default:
undefined
The output path of the JSON feed, when true
it outputs to feed.json
.
limit
- Type:
number
- Default:
30
The maximum amount of posts to include in the feed.
copyright
- Type:
string
- Default:
All rights reserved
The copyright info in the feed.
License
MIT.
0.12.0-alpha.6
2 years ago
0.12.0-alpha.7
2 years ago
0.12.0-alpha.4
2 years ago
0.12.0-alpha.5
2 years ago
0.12.0-alpha.0
3 years ago
0.12.0-alpha.1
3 years ago
0.12.0-alpha.2
3 years ago
0.12.0-alpha.3
3 years ago
0.4.3
5 years ago
0.4.3-canary.504.adade2d.0
5 years ago
0.4.2
5 years ago
0.4.1-canary.366.524f251.0
5 years ago
0.4.1
5 years ago
0.4.1-canary.356.aaea14a.0
5 years ago
0.4.1-canary.356.10.0b4642c.0
5 years ago
0.4.1-canary.356.0b4642c.0
5 years ago
0.4.0
5 years ago
0.3.5-canary.345.d76e516.0
5 years ago
0.3.4
5 years ago
0.3.4-canary.268.dce375b.0
5 years ago
0.3.3
5 years ago
0.3.3-canary.263.9c0f718.0
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago