valantonini / wintersmith-feed

RSS feed generator plugin for wintersmith

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wintersmith-feed

Build Status npm npm

An rss feed generator for Wintersmith

Requires wintersmith-contents and typogr

npm install wintersmith-contents --save
npm install typogr --save
npm install wintersmith-feed --save
{
  "plugins": [
    "wintersmith-contents",
    "wintersmith-feed"
  ]
}

add to the require section in wintersmith's configuration file

{
  "require": {
    "typogr": "typogr"
  }
}

articles location can be configured in config.json. by default, it will use locals.name and locals.description for title and description respectively. Those can be overridden in the feed config.

{
  "feed": {
    "articles": "posts",
    "title": "my blog",
    "description": "software engineer"
  }
}

don't forget the meta tag in your layout for autodiscovery

link(rel='alternate', type='application/rss+xml', title='RSS Feed for my blog', href='/feed.xml')

About

RSS feed generator plugin for wintersmith

License:MIT License


Languages

Language:JavaScript 92.0%Language:Pug 8.0%