Package Exports
- webriq-roots-rss-generator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webriq-roots-rss-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Webriq roots rss generator
A WebriQ extension for static cms page that generate rss feed.
Installation
Open a separate terminal window and run:
$ npm i webriq-roots-rss-generator --save
Features
- Create customize
rss
feed for yourmarkdown
files. - Create
json
out from your post files (soon) - Fast & easy to customize
- Auto compile for every post change
Options
These are the available options you can set.
folder
- sets the directory to scan for.md
files eg:/posts
output
- path to save compile rss feed.maxcount
- number of post to be compiled (default is 15).json
- path to save compile json file (soon).settings
- configures rss header, it has (5) five editable elements namely:title
- sets the header titlefeed_url
- the path for your feed urlsite_url
- your website domaindescription
- sets your rss descriptiongenerators
- (this is optional)
Configurations
Go to app.coffee
from your roots project directory and add the module.
var roots_rss_generator = require('webriq-roots-rss-generator')
Add in the extension instance.
extensions: [
roots_rss_generator(
folder: "posts"
output: "./public/feed.xml"
maxcount: 5
settings:
title: "New title"
feed_url: "http://mysite.com/feed.xml"
description: "This is new description"
)
]
Other notes
- This module is only applicable when your are using http://roots.cx/
- This module uses https://www.npmjs.com/package/rss. (NOTE: Not all options were added thought).
##Contributing
This module is still at its early version so there could be some bug. Feel free to add suggestion's and fixes to help improve the module. I will do my best to improve the plugin so everyone will be happy. Thanks