Skip to content

Commit 55c0acc

Browse files
authored
Add Baidu site verfication (mmistakes#2830)
1 parent 800064e commit 55c0acc

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

_includes/seo.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,7 @@
152152
{% if site.naver_site_verification %}
153153
<meta name="naver-site-verification" content="{{ site.naver_site_verification }}">
154154
{% endif %}
155+
{% if site.baidu_site_verification %}
156+
<meta name="baidu-site-verification" content="{{ site.baidu_site_verification }}">
157+
{% endif %}
155158
<!-- end _includes/seo.html -->

docs/_docs/05-configuration.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,22 @@ Into `_config.yml`
715715
yandex_site_verification: "2132801JL"
716716
```
717717

718+
#### Baidu
719+
720+
There are several ways to verify site ownership — the easiest is adding an authentication code to your config file.
721+
722+
Copy and paste the string inside of `content`:
723+
724+
```html
725+
<meta name="baidu-site-verification" content="code-iA0wScWXN1" />
726+
```
727+
728+
Into `_config.yml`
729+
730+
```yaml
731+
baidu_site_verification: "code-iA0wScWXN1"
732+
```
733+
718734
#### Twitter Cards and Facebook Open Graph
719735

720736
To improve the appearance of links shared from your site to social networks like Twitter and Facebook be sure to configure the following.

0 commit comments

Comments
 (0)