【问题标题】:Verify site ownership in google for Gitbook site在 google 中验证 Gitbook 网站的网站所有权
【发布时间】:2017-04-27 18:32:33
【问题描述】:

Gitbook中的google验证网站所有权如何做,比如sitemap上传到google?

Google 解释了许多技术。显然最简单的方法是将 HTML 文件上传到主文件夹页面:https://support.google.com/webmasters/answer/35179?hl=en

问题是 gitbook 没有以这种方式上传文件:www.mygitbooksite.com/googleVerificacion4341321.html。但可以在文件夹中添加:www.mygitbooksite.com/someFolder/googleVerificacion4341321.html

我找到了一个可以与解决方案相关的gitbook插件:https://www.npmjs.com/package/gitbook-plugin-verifications

我搜索了很多,但没有成功进行此验证,仅在如何添加谷歌分析方面。

提前致谢!

【问题讨论】:

    标签: google-search-console gitbook


    【解决方案1】:

    回答我自己的问题后,我找到了一种通过 HTML 元标记验证网站的方法:

    安装插件gitbook-plugin-meta-single,然后编辑book.json文件:

      "pluginsConfig": {
            "meta-single": {
                "name": "google-site-verification",
                "content": "here the key string provided by google"
            }
        }
    

    它将在<HEAD>标签内添加密钥

     <HTML>
      <HEAD>
      <TITLE>Your Title</TITLE>
      <meta name="google-site-verification" content="here the key string provided by google">
      </HEAD>
      <BODY>
    

    点击谷歌页面中的验证按钮,以便他们重新检查身份验证。就是这样!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多