You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
373 B

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  3. @foreach (Post post in Storage.GetAllPosts())
  4. {
  5. <url>
  6. <loc>@post.AbsoluteUrl</loc>
  7. <lastmod>@post.LastModified.ToString("yyyy-MM-ddThh:mmzzz")</lastmod>
  8. </url>
  9. }
  10. </urlset>
  11. @{
  12. Response.ContentType = "text/xml";
  13. }