织梦自带生成网站地图的源码非常不好用,本文分享一下dedecms网站地图生成模板,安装方式请查看:Dedecms网站地图模板安装及使用方式(http://www.noteet.com/3208.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Author" content="WonderCSS.com YuZhan" />
<meta name="keywords" content="{dede:field name='keywords'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<link type="text/css" rel="stylesheet" href="http://www.wondercss.com/share/dedecms-sitemap-baidu.css" />
<title>{dede:field.title/} | {dede:global.cfg_webname/}</title>
</head>
<body>
	<h1>{dede:field.title/}</h1>
	<div id="header">
	网站主栏目:
	{dede:channel type="top"}
	<a href="[field:typeurl/]">[field:typename/]</a>
	{/dede:channel}
	</div>
	<div id="sitemap">
		<ul class="sp2">
		<li class="listtitle"><span class="url"><b>文档名称 Document title</b></span><span class="time"><b>最后更新 Last modified</b></span></li>
		{dede:freelist/}
		</ul>
		<div id="pagelist">
		 {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="10"/}
		</div>
	</div>
	<div id="footer">
		<p>Generated with Baidu (html) Sitemaps by aswait. This dedecms template is free to use.</p>
		<p>If you have problems with your sitemap please visit the template page.</p>
	</div>
</body>
</html>