关键词:
网站地图sitemap.xml样式代码sitemap.xsl。对原有sitemap.xsl代码样式进行了修改,直接上源码。mark
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>XML Sitemap</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;font-size:13px; h1 color:#0099CC; #intro background-color:#CFEBF7;border:1px #2580B2 solid;padding:5px 13px 5px 13px;margin:10px; #intro p line-height:16.8667px; td font-size:11px; th text-align:center;padding: 10px 60px 10px 60px;font-size:11px;background-color:#CFEBF7; tr.high background-color:whitesmoke; #footer padding:2px;margin:10px;font-size:8pt;color:gray; #footer a color:gray; a color:black; </style> </head> <body> <h1>XML Sitemap</h1> <div id="intro"> <p> This is a XML Sitemap which is supposed to be processed by search engines like Google, MSN Search and YAHOO.<br /> With such a sitemap, it‘s much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently.<br /> This XSLT template by <a href="https://www.bjstos.com/">BJSTOS</a> owner. If you have problems with your sitemap please visit the <a href="https://www.bjstos.com/">BJSTOS</a>. </p> </div> <div id="content"> <table cellpadding="5"> <tr style="border-bottom:1px black solid;"> <th>URL</th> <th>Priority</th> <th>Change Frequency</th> <th>Last Change</th> </tr> <xsl:variable name="lower" select="‘abcdefghijklmnopqrstuvwxyz‘"/> <xsl:variable name="upper" select="‘ABCDEFGHIJKLMNOPQRSTUVWXYZ‘"/> <xsl:for-each select="sitemap:urlset/sitemap:url"> <tr> <xsl:if test="position() mod 2 != 1"> <xsl:attribute name="class">high</xsl:attribute> </xsl:if> <td> <xsl:variable name="itemURL"> <xsl:value-of select="sitemap:loc"/> </xsl:variable> <a href="$itemURL" target="_blank"> <xsl:value-of select="sitemap:loc"/> </a> </td> <td style="text-align:center;"> <xsl:value-of select="concat(sitemap:priority*100,‘%‘)"/> </td> <td style="text-align:center;"> <xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/> </td> <td style="text-align:center;"> <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(‘ ‘, substring(sitemap:lastmod,12,5)))"/> </td> </tr> </xsl:for-each> </table> </div> </body> </html> </xsl:template> </xsl:stylesheet>
网站地图sitemap(代码片段)
...的收录概率。网站地图一般存放在域名根目录下并命名为sitemap,比如http://www.liujiangblog.com/sitemap.xml。一个典型的sitemap,其内 查看详情
sitemap索引格式的网站地图怎么做
...等待,直到该网站是完全抓取。3,将被重定向到生成的Sitemap详细信息页,包括页数,断开的链接列表,XML文件的内容和链接到一个sitemap文件。使用链接下载的地图文件,并放入网站域名的根文件夹。4,转到站长工具(百度和... 查看详情
帝国cms怎么制作sitemap.xml和baidumap.xml网站地图
参考技术A直接使用帝国cms提供的sitemap插件,官网上有的,你搜下 查看详情
php生成sitemap.xml地图文件(代码片段)
文章目录前言什么是Sitemap?sitemap文件遵循指南xml格式详解实战代码sitemap组件代码调用sitemap组件仓库地址实战截图相关问题Sitemap提交后,多久能被百度处理?提交的Sitemap都会被百度抓取并收录吗?XML格式的Sitemap... 查看详情
django网站地图sitemap(代码片段)
...的收录概率。网站地图一般存放在域名根目录下并命名为sitemap,比如http://www.liujiangblog.com/sitemap.xml。一个典型的sitemap,其内容片段如下:ThisXMLfiledoesnotappeartohaveanystyleinformationassociatedwithit.Thedocumenttreeisshownbelow.<urlsetxmlns="http://... 查看详情
什么是sitemap?
sitemap是什么?sitemaps是网站地图的意思。网站地图是为便于搜索引擎抓取和用户更方便地找到自己需要的内容而设计的,它分两种,分别用于用户导航和搜索引擎收录:1、sitemap.xml格式网站地图sitemap.xml格式网站地图为:方便搜... 查看详情
php生成sitemap.xml地图文件(代码片段)
文章目录前言什么是Sitemap?sitemap文件遵循指南xml格式详解实战代码sitemap组件代码调用sitemap组件仓库地址实战截图相关问题Sitemap提交后,多久能被百度处理?提交的Sitemap都会被百度抓取并收录吗?XML格式的Sitemap... 查看详情
php生成sitemap.xml地图文件(代码片段)
文章目录前言什么是Sitemap?sitemap文件遵循指南xml格式详解实战代码sitemap组件代码调用sitemap组件仓库地址实战截图相关问题Sitemap提交后,多久能被百度处理?提交的Sitemap都会被百度抓取并收录吗?XML格式的Sitemap... 查看详情
php生成sitemap.xml地图文件(代码片段)
文章目录前言什么是Sitemap?sitemap文件遵循指南xml格式详解实战代码sitemap组件代码调用sitemap组件仓库地址实战截图相关问题Sitemap提交后,多久能被百度处理?提交的Sitemap都会被百度抓取并收录吗?XML格式的Sitemap... 查看详情
帝国cms怎么制作sitemap.xml和baidumap.xml网站地图
...择直接页面,页面名称为:网站地图,文件名修改为../../sitemap.xml '?> [!--news.url--] daily 1.0 [!--news.url--]hmoban daily 0.8 [!--news.url--]wpyuanma daily 0.8 [!--news.url--]diguoCMS daily 0.8 [!--ne... 查看详情
sitemap怎样生成?
...那个被百度,谷歌,雅虎,爱问收录那种。谢谢!!googlesitemap怎样生成呢?谢谢~~sitemap怎么生成1.利用site生成器生成sitemap文件,新建文件——输入域名(例如”www.fuyeor.com“),文件存储位置——进入生成页面,点击开始——文... 查看详情
nuxt.js做站点地图(sitemap.xml)详解(代码片段)
...在做跨境电商项目中seo是必须要做的,seo中站点地图(sitemap.xml,robots.txt)又是必不可少的,这里就记录一下nuxt中站点地图是如何做的。第一步:安装@/nuxt/sitemapnpminstall@nuxtjs/sitemap第二步:在根目录static目录下新建sitemap.j... 查看详情
nuxt.js做站点地图(sitemap.xml)详解(代码片段)
...在做跨境电商项目中seo是必须要做的,seo中站点地图(sitemap.xml,robots.txt)又是必不可少的,这里就记录一下nuxt中站点地图是如何做的。第一步:在根目录static目录下新建sitemap.jssitemap.xml文件的内容importaxiosfrom"axios";const... 查看详情
wordpress免插件生成完整站点地图(sitemap.xml)的php代码
让这个代码更加完善,可以同时生成首页、文章、单页面、分类和标签的sitemap!一、PHP代码<?phprequire(‘./wp-blog-header.php‘);header("Content-type:text/xml");header(‘HTTP/1.1200OK‘);$posts_to_show=1000;echo‘<?xmlversion="1.0"encoding="U 查看详情
baidusitemapgenerator伪静态如何使用
...maccessingthroughHTTP#RulestoensurethatnormalcontentgetsthroughRewriteRule/sitemap.xml/sitemap.xml[L]RewriteRule/favicon.ico/favicon.ico[L]#Forfile-basedwordpresscontent(i.e.theme),admin,etc.RewriteRule/wp-(.*)/wp-$1[L]#Fornormalwordpresscontent,viaindex.phpRewriteRule^/$/index.php[L]RewriteRule/(... 查看详情
网站robots.txt&sitemap.xml
1.如何查看网站的robots.txt 网址/robots.txt,比如小米 https://www.mi.com/robots.txt sitemap.xml 查看详情
gatsby-starter-blog 的站点地图
】gatsby-starter-blog的站点地图【英文标题】:sitemapforgatsby-starter-blog【发布时间】:2018-02-2201:18:50【问题描述】:目前我在为gatsby-starter-blog生成sitemap.xml时遇到问题。http://localhost:8000/sitemap.xml仍然没有找到。我已经在做什么:npmins... 查看详情
如何使用 Firebase 为单页应用程序实现 sitemap.xml 文件?
】如何使用Firebase为单页应用程序实现sitemap.xml文件?【英文标题】:Howtoimplementasitemap.xmlfileforasinglepageappusingFirebase?【发布时间】:2020-01-1204:04:57【问题描述】:我在阅读谷歌关于SEO的指南时发现了这一点。帮助Google找到您的内... 查看详情