Skip to content

Commit

Permalink
Implement support for "rss: false"
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burtchaell committed Jul 27, 2014
1 parent 02bd3f4 commit b8e4ca2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ module.exports = function (config, callback) {
long: page.long
};

addItem(defaults.item);
// If "rss: false" does not exist in the YFM, then add the item.
if (page.rss != false) {
addItem(defaults.item);
};

next();
}, function (err) {
Expand Down
1 change: 1 addition & 0 deletions test/foo.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: Foo
description: This is foo.
rss: false
---

0 comments on commit b8e4ca2

Please sign in to comment.