Skip to content

Commit

Permalink
RSS/Atom Feeds will not include non-published posts. Issue Sandra#138
Browse files Browse the repository at this point in the history
  • Loading branch information
fekberg committed Jul 9, 2015
1 parent d72cc55 commit 03a5a54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Snow/TestModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ public TestModule()
return View[result.Layout, result];
};

Post["/rss"] = x => Response.AsRSS(Posts.Take(Settings.FeedSize), Settings.BlogTitle, Settings.SiteUrl, StaticFile);

Post["/atom"] = x => Response.AsAtom(Posts.Take(Settings.FeedSize), Settings.BlogTitle, Settings.SiteUrl, Settings.Author, Settings.Email, StaticFile);
Post["/rss"] = x => Response.AsRSS(Posts.Where(post => post.Published == Published.True).Take(Settings.FeedSize), Settings.BlogTitle, Settings.SiteUrl, StaticFile);

Post["/atom"] = x => Response.AsAtom(Posts.Where(post => post.Published == Published.True).Take(Settings.FeedSize), Settings.BlogTitle, Settings.SiteUrl, Settings.Author, Settings.Email, StaticFile);

Post["/sitemap"] = x =>
{
Expand Down

0 comments on commit 03a5a54

Please sign in to comment.