Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/kross-hugo-portfolio-template.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChi Zhang <zhangch@jnist.cn>2021-09-09 15:11:32 +0300
committerChi Zhang <zhangch@jnist.cn>2021-09-09 15:11:32 +0300
commitb743bad139383ab0bb2d788f54b90c30d9f17454 (patch)
tree4cf6bfe58850bb5440c963c188a2bb7f9964fed4
parent17ab9b707cdd76aea360dca43ac39997b8ac5272 (diff)
baidu site verification
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/head.html5
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 &copy; 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 }};