1. 优化搜索

require(['gitbook'], function(gitbook){
    gitbook.events.bind("start", function(e,config){
        (function(){
            var bp = document.createElement('script');
            var curProtocol = window.location.protocol.split(':')[0];
            if (curProtocol === 'https') {
                bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
            }
            else {
                bp.src = 'http://push.zhanzhang.baidu.com/push.js';
            }
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(bp, s);
        })();
    });
});
var tester = require('gitbook-tester');

tester.builder()
  .withContent('Test baidu and google')
  .withBookJson({ plugins: ['siteVerification'] })
  .withBookJson({ pluginsConfig: { siteVerification: { baidu: '222' } } })
  .create()
  .then(function(result) {
    console.log(result[0].content)
  });

1.1. 站点地图

npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save

https://github.com/robots.txt

1.2. 搜索网站提交入口

1.3. 独立博客提交入口

1.4. 站长平台

1.5. 阅读更多

作者: 雪之梦技术驿站
链接: https://snowdreams1006.github.io/myGitbook/seo/
来源: 雪之梦技术驿站
本文原创发布于「雪之梦技术驿站」,转载请注明出处,谢谢合作!

https://snowdreams1006.github.io/snowdreams1006-wechat-open.png

© snowdreams1006 all right reserved,powered by Gitbook文件修订时间: 2020-08-07 00:01:58

results matching ""

    No results matching ""