예제 #1
0
 /// <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 */));
 }
예제 #2
0
 public static IEnumerable <EntryDay> GetBlogPostsForHomePage(this ObjectProvider repository, int itemCount, PostConfig postConfig)
 {
     return(repository.GetEntries(itemCount, PostType.BlogPost, postConfig, false /*includeCategories*/).GroupByDayUsingDateCreated());
 }