zoukankan      html  css  js  c++  java
  • [网站优化]dede单页制作Sitemap.xml地图

    刚发现站长平台有提交地图, 但dede就没有生成xml地图的功能, 所以自己用单页生成搞了个
    具体操作为:
    1.制作单页模板, 网址改成自己的, 和一般调用一样

    本部分设定了隐藏,您已回复过了,以下是隐藏的内容
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
      <url>
        <loc>http://www.hcwfg.com/</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.hcwfg.com[field:typelink /]</loc>
      <changefreq>daily</changefreq>
      <priority>0.8</priority>
      </url>
      {/dede:channel}
      {dede:arclist orderby=pubdate}
      <url>
        <loc>http://www.hcwfg.com[field:arcurl/]</loc>
        <lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
        <changefreq>monthly</changefreq>
      </url>
      {/dede:arclist}
    </urlset>


    2. 在DEDE后台点击单独页面管理>>增加新页面


    清风明月本无价,近水远山皆有情。
  • 相关阅读:
    关于勉励
    jQuery MiniUI
    DES 加密解密
    软件设计的原则
    关于jFinal
    医疗保险,公积金、养老、生育、工伤、失业保险
    GET和POST的区别(详解)
    单例模式
    ajax 同步和异步的区别
    tomcat部署web项目的3中方法
  • 原文地址:https://www.cnblogs.com/onlylove2015/p/4394181.html
Copyright © 2011-2022 走看看