@using RatuoX.Common
@using RatuoX.Core
@using XCode
@{
ViewBag.Title = "网站地图";
Layout = "~/Views/Shared/_SitemapLayout.cshtml";
string url = Utils.GetServerUrl() + "/";// "http://eqx.gz1.kpweb.cn";
string lastmod = DateTime.Now.ToString("yyyy-MM-dd");
IList<ArticleCategory> firstlayoutlist = ArticleCategory.FindAll(ArticleCategory._.PId == 5, ArticleCategory._.Rank.Asc(), null, 0, 4);
}
<?xml version="1.0" encoding="utf-8" ?>
<urlset>
<url>
<loc>@(url)home/productCenter</loc>
<priority>1.0</priority>
<changefreq>daily</changefreq>
</url>
@foreach (var item in firstlayoutlist)
{
<url>
<loc>@(url)home/productCenter?kid=@(item.Id)</loc>
<priority>1.0</priority>
<changefreq>daily</changefreq>
</url>
}
</urlset>