Skip to content

Commit

Permalink
Add Baidu site verfication (mmistakes#2830)
Browse files Browse the repository at this point in the history
  • Loading branch information
luweizheng authored and mjt91 committed Jun 23, 2021
1 parent 26484b2 commit 10515a6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
16 changes: 16 additions & 0 deletions docs/_docs/05-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 10515a6

Please sign in to comment.