网站地图生成类库。Sitemap generator library
现在做网站,为了SEO,一般都要有Sitemap 。
So,写了个类库,方便使用。可以生成 XML,HTML,text 3种格式的Sitemap。
最简单的使用方法:
SitemapZ sitemap = new SitemapZ(); sitemap.Create("链接"); Response.ContentType = "text/xml"; Response.Write(sitemap.Bulid()); Response.End();
nuget 地址:
(https://www.myget.org/F/passingwind/)
Install-Package Passingwind.SitemapGenerator -Version 1.0.0-bate1
Categories:
.net
已禁用评论。