/// <summary> /// Gets the main syndicated entries. /// </summary> public static ICollection <Entry> GetMainSyndicationEntries(this ObjectProvider repository, int itemCount) { return(repository.GetEntries(itemCount, PostType.BlogPost, PostConfig.IncludeInMainSyndication | PostConfig.IsActive, true /* includeCategories */)); }
public static IEnumerable <EntryDay> GetBlogPostsForHomePage(this ObjectProvider repository, int itemCount, PostConfig postConfig) { return(repository.GetEntries(itemCount, PostType.BlogPost, postConfig, false /*includeCategories*/).GroupByDayUsingDateCreated()); }