diff options
author | Chi Zhang <zhangch@jnist.cn> | 2021-09-09 15:11:32 +0300 |
---|---|---|
committer | Chi Zhang <zhangch@jnist.cn> | 2021-09-09 15:11:32 +0300 |
commit | b743bad139383ab0bb2d788f54b90c30d9f17454 (patch) | |
tree | 4cf6bfe58850bb5440c963c188a2bb7f9964fed4 | |
parent | 17ab9b707cdd76aea360dca43ac39997b8ac5272 (diff) |
baidu site verification
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1d32c59..652efd1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -64,6 +64,8 @@ author = "Johnathan Smith" description = "This is meta description" # google analytics google_analytics_id = "" # Your ID +# baidu site verification +baidu_site_verification = "" Your verification code # copyright copyright = "Copyright © 2021 a Theme by [Gethugothemes](https://gethugothemes.com)" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c1e937c..3c5b0b5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,6 +8,11 @@ {{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} {{ hugo.Generator }} + {{ with site.Params.baidu_site_verification }} + {{ "<!-- baidu site verification -->" | safeHTML }} + <meta name="baidu-site-verification" content="{{ . }}" /> + {{ end }} + <style> :root{ --primary-color:{{ site.Params.theme_color }}; |