网上查到的方案好几种,其实大部分都过时了。我用的是方案C,简单又明了。他们都无一例外的没有讲那一串乱码从哪里来。那个是从Google Search Console而来。每个网站不一样,要去获取自己的Settings->Ownership verification。拿到google-site-verification之后可以根据以下方案来填写。

方案A

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1"><!-- Begin Jekyll SEO tag v2.8.0 -->
<title>google verify with HTML tag | 袁保康的技术天地</title>
<meta name="generator" content="Jekyll v3.9.5" />
<meta property="og:title" content="google verify with HTML tag" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="网上查到的方案好几种,其实大部分都过时了。我用的是方案C,简单又明了。他们都无一例外的没有讲那一串乱码从哪里来。那个是从Google Search Console而来。每个网站不一样,要去获取自己的Settings-&gt;Ownership verification。拿到google-site-verification之后可以根据以下方案来填写。" />
<meta property="og:description" content="网上查到的方案好几种,其实大部分都过时了。我用的是方案C,简单又明了。他们都无一例外的没有讲那一串乱码从哪里来。那个是从Google Search Console而来。每个网站不一样,要去获取自己的Settings-&gt;Ownership verification。拿到google-site-verification之后可以根据以下方案来填写。" />
<link rel="canonical" href="https://kangear.github.io/blog/2021/10/18/jekyll-google-verify.html" />
<meta property="og:url" content="https://kangear.github.io/blog/2021/10/18/jekyll-google-verify.html" />
<meta property="og:site_name" content="袁保康的技术天地" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2021-10-18T05:43:05+00:00" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="google verify with HTML tag" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2021-10-18T05:43:05+00:00","datePublished":"2021-10-18T05:43:05+00:00","description":"网上查到的方案好几种,其实大部分都过时了。我用的是方案C,简单又明了。他们都无一例外的没有讲那一串乱码从哪里来。那个是从Google Search Console而来。每个网站不一样,要去获取自己的Settings-&gt;Ownership verification。拿到google-site-verification之后可以根据以下方案来填写。","headline":"google verify with HTML tag","mainEntityOfPage":{"@type":"WebPage","@id":"https://kangear.github.io/blog/2021/10/18/jekyll-google-verify.html"},"url":"https://kangear.github.io/blog/2021/10/18/jekyll-google-verify.html"}</script>
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/assets/css/style.css"><link type="application/atom+xml" rel="alternate" href="https://kangear.github.io/feed.xml" title="袁保康的技术天地" /><script>
if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-208608166-1', 'auto');
  ga('send', 'pageview');
}
</script>
  
<meta name="google-site-verification" content="P5JvIrpAzGuAYMCBT3_-1TEpWsUUoQAaYK3B6hgaauA" />
</head>

from: Make your Jekyll Github Pages appear on Google search result (2 steps)

方案B

google_site_verification: onQcXpAvtHBrUI5LlroHNE_FP0b2qvFyPq7VZw36iEY

from: jekyll github repo code

方案C

webmaster_verifications:
  google: 1234
  bing: 1234
  alexa: 1234
  yandex: 1234
  baidu: 1234

from: jekyll seo tag usage