Skip to content

Commit

Permalink
Update generator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon committed Aug 21, 2018
1 parent e668ffe commit 99edc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generator.js
Expand Up @@ -29,7 +29,7 @@ module.exports = function(locals) {
return post.draft !== true;
});

if (feedConfig.limit) posts = posts.limit(feedConfig.limit);
if (feedConfig.limit) posts = posts.limit(feedConfig.limit || '-date');

var url = config.url;
if (url[url.length - 1] !== '/') url += '/';
Expand Down

0 comments on commit 99edc10

Please sign in to comment.