新建一个utf-8格式的html文件
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>{dede:global.cfg_basehost/}</loc> <lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate} [field:pubdate function=strftime('%Y-%m-%d',@me)/]{/dede:arclist}</lastmod> <changefreq>always</changefreq> <priority>1.0</priority> </url> {dede:channel row='1000' type='top'} <url> <loc>[field:typelink /]</loc> <changefreq>daily</changefreq> <priority>0.8</priority> </url> {/dede:channel} {dede:arclist row=2000 orderby=pubdate} <url> <loc>[field:arcurl/]</loc> <lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod> <changefreq>monthly</changefreq> <priority>0.7</priority> </url> {/dede:arclist} </urlset>
要下载直接点击上面的附件就可以。
然后把文件放在\templets\default 里面
在去网站后台生成一下
把生成的xml文件点击鼠标右键 查看网页源文件,保存好生成的xml文件放在网站根目录或者其他目录
这个操作之后注意在还原主页,把主页在生成一下就好了
这个过程就操作完毕了