主页 > 网站建设 > 建站知识 > dedecms使用单页制作网站地图sitemap.xml

dedecms使用单页制作网站地图sitemap.xml

POST TIME:2019-03-19 17:12

本文将为您介绍如何dedecms使用单页制作网站地图sitemap.xml
具体操作为:
1.制作单页模板, 网址改成自己的, 和一般调用一样
<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
<url>
<loc>http://www.genban.org/</loc>
<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
[field:pubdate function=strftime('%Y-%m-%d',@me)/]
{/dede:arclist}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{dede:channel type=’top’}
<url>
<loc>http://www.genban.org[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist orderby=pubdate}
<url>
<loc>http://www.genban.org[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
</urlset>
2. 在DEDE后台点击单独页面管理>>增加新页面

好了就这样完成了, 够简单了吧, 这是效果网站



收缩
  • 微信客服
  • 微信二维码
  • 电话咨询

  • 400-1100-266