Example #1
0
 public BlogPost[] GetPages(string blogId, int maxPages) =>
 StaticSitePage.GetAllPages(Config)
 .Select(page => page.BlogPost)
 .OrderByDescending(page => page.DatePublished)
 .Take(maxPages)
 .ToArray();
Example #2
0
 public PageInfo[] GetPageList(string blogId) =>
 StaticSitePage.GetAllPages(Config).Select(page => page.PageInfo).ToArray();