Add Baidu site verfication (#2830)

This commit is contained in:
luweizheng 2021-04-14 03:53:30 +08:00 committed by GitHub
parent 641ca6f3d8
commit deaed193af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -152,4 +152,7 @@
{% if site.naver_site_verification %}
<meta name="naver-site-verification" content="{{ site.naver_site_verification }}">
{% endif %}
{% if site.baidu_site_verification %}
<meta name="baidu-site-verification" content="{{ site.baidu_site_verification }}">
{% endif %}
<!-- end _includes/seo.html -->

View file

@ -715,6 +715,22 @@ Into `_config.yml`
yandex_site_verification: "2132801JL"
```
#### Baidu
There are several ways to verify site ownership — the easiest is adding an authentication code to your config file.
Copy and paste the string inside of `content`:
```html
<meta name="baidu-site-verification" content="code-iA0wScWXN1" />
```
Into `_config.yml`
```yaml
baidu_site_verification: "code-iA0wScWXN1"
```
#### Twitter Cards and Facebook Open Graph
To improve the appearance of links shared from your site to social networks like Twitter and Facebook be sure to configure the following.