diff --git a/src/Snow/TestModule.cs b/src/Snow/TestModule.cs index 4878db89..90514522 100644 --- a/src/Snow/TestModule.cs +++ b/src/Snow/TestModule.cs @@ -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 => {