欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

代理加盟

2023全新代理計(jì)劃,一站式模板建站,銅牌代理低至699元送終身VIP,獨(dú)立代理后臺(tái),自營(yíng)貼牌。

您現(xiàn)在的位置: 麥站網(wǎng) > PBoot教程 > 使用教程 >

pbootcms生成html網(wǎng)站地圖

來(lái)源:本站原創(chuàng) 發(fā)布時(shí)間:2023-05-04 15:27:49熱度: ℃我要評(píng)論(0

麥站模板建站平臺(tái)(10年經(jīng)驗(yàn)),服務(wù)數(shù)萬(wàn)家企業(yè),固定透明報(bào)價(jià)。域名注冊(cè)、主機(jī)/服務(wù)器、網(wǎng)站源碼一站式服務(wù)。實(shí)體公司,專(zhuān)業(yè)團(tuán)隊(duì),值得選擇!超過(guò)1000套模板已登記版權(quán),合規(guī)合法建站,規(guī)避版權(quán)風(fēng)險(xiǎn)!【點(diǎn)擊獲取方案】

大家都知道pbootcms程序可以自動(dòng)生成sitemap.xml格式的地圖,但是我們想要一個(gè)HTML版本的地圖如何完成呢?

1:創(chuàng)建地圖模板,命名為 sitemap.html

可以新建文件 sitemap.html,并命名為 sitemap.html,文件插入以下代碼。代碼如下:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="//apps.bdimg.com">
<meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-title" content="{pboot:sitetitle}">
<meta http-equiv="Cache-Control" content="no-siteapp">
<title>{pboot:pagetitle}</title>
<meta name="keywords" content="{pboot:pagekeywords}">
<meta name="description" content="{pboot:pagedescription}">
<meta name="author" content="mengdiqiu.com.cn"/>
<style>
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,pre,a,code,del,em,img,strong,sub,sup,b,u,i,dl,dt,dd,ol,ul,li,fieldset,form,label,table,tbody,tfoot,thead,tr,th,td{border:none;font-size:100%;margin:0;outline:0;padding:0;vertical-align:baseline}
body{font-family:"microsoft jhenghei,sans-serif","Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Helvetica,tahoma,arial,Verdana,sans-serif,"WenQuanYi Micro Hei","B8BF53";font-size:12px;margin:0 auto;}
ol,ul{list-style:none}
a{color:#666;text-decoration:none}
a:hover{color:#f60;text-decoration:none}
a:hover, a:active, a:focus {
 text-decoration: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.map{ padding:10px; color:#333; line-height:22px;}
.map a{color:#333; }
</style>
<link rel="shortcut icon" href="/favicon.ico">
<!--[if lt IE 9]><script src="/style/js/html5.min.js"></script><![endif]-->
</head>
<body>
<div class="map">
  <ul>
  {pboot:nav parent=0 num=20}<li><a href="[nav:link]">[nav:name]</a></li>{/pboot:nav}
  {pboot:nav parent=0 num=20}{pboot:2nav parent=[nav:scode]}<li><a href="[2nav:link]">[2nav:name]</a></li>{/pboot:2nav}{/pboot:nav}
  {pboot:list scode=* num=2000}<li><a href="[list:link]" title="[list:title]">[list:title]</a></li>{/pboot:list}
  </ul>
</div>
</body>
</html>

2:首先新增欄目--隱藏--地圖

欄目設(shè)置為隱藏,不顯示在導(dǎo)航,然后設(shè)置為專(zhuān)題頁(yè),詳細(xì)頁(yè)模板選擇成sitemap.html。

pbootcms生成html網(wǎng)站地圖

3:底部模板添加地圖的超鏈接

底部模板添加超鏈接地址,為了讓蜘蛛更好的抓取獲取鏈接,找到底部模板,相應(yīng)處添加代碼:

{pboot:sort scode=ID}<a href="[sort:link]">[sort:name]</a>{/pboot:sort}

其中這里的 scode=ID  ,這個(gè)ID是后臺(tái)您新建地圖欄目的ID號(hào)。

    轉(zhuǎn)載請(qǐng)注明來(lái)源網(wǎng)址:http://mengdiqiu.com.cn/pbootcms_sy/5705.html

    發(fā)表評(píng)論

    評(píng)論列表(條)

       
      QQ在線(xiàn)咨詢(xún)
      VIP限時(shí)特惠