From 69de00c0cd994a7323686c79bdc0efe442791f62 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 22 Feb 2021 20:51:20 +0000 Subject: [PATCH] feat: add support for baidu_tongji and baidu_site_verification The new options can be added under `marketing` in `params.toml` --- .../layouts/partials/marketing/baidu_tongji.html | 13 +++++++++++++ wowchemy/layouts/partials/site_head.html | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 wowchemy/layouts/partials/marketing/baidu_tongji.html diff --git a/wowchemy/layouts/partials/marketing/baidu_tongji.html b/wowchemy/layouts/partials/marketing/baidu_tongji.html new file mode 100644 index 00000000..3bf47fcd --- /dev/null +++ b/wowchemy/layouts/partials/marketing/baidu_tongji.html @@ -0,0 +1,13 @@ +{{ $baidu_tongji := site.Params.marketing.baidu_tongji | default "" }} + +{{ if hugo.IsProduction | and $baidu_tongji }} + +{{ end }} diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html index 7756601c..e2adb157 100644 --- a/wowchemy/layouts/partials/site_head.html +++ b/wowchemy/layouts/partials/site_head.html @@ -15,6 +15,9 @@ {{ with site.Params.marketing.google_site_verification }} {{- end -}} + {{ with site.Params.marketing.baidu_site_verification }} + + {{- end -}} {{ $scr := .Scratch }} @@ -182,6 +185,7 @@ {{ partial "marketing/google_analytics" . }} {{ partial "marketing/google_tag_manager" . }} {{ partial "marketing/microsoft_clarity" . }} + {{ partial "marketing/baidu_tongji" . }} {{/* Netlify Identity integration. */}} {{ $use_cms := templates.Exists "wowchemycms/single.wowchemycms_config.yml" | default (site.Params.cms.netlify_cms | default false) }}