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.
 
 
 
 

15 lines
373 B

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