diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c1e937c..b9ed3f7 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 }}; @@ -39,4 +44,17 @@ </script> {{ end }} + {{ with site.Params.baidu_analytics_id }} + {{ "<!-- Baidu analytics -->" | safeHTML }} + <script> + var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?{{ . }}"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })(); + </script> + {{ end }} + </head>
\ No newline at end of file |