diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 2d7b955..3076cf9 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -97,6 +97,7 @@ enableThemeChange = true # service googleTagManager = "" # GTM-XXXXXX +googleRecaptcha = "" #add your site key here example "6LesNi8aAAAAAGfQ6mXSkFJIVTpDpywrUUHTdx87" baiduAnalytics = "" enableBusuanzi = false busuanziSiteUV = true diff --git a/layouts/partials/head/services.html b/layouts/partials/head/services.html index 7cfed30..aa5c133 100644 --- a/layouts/partials/head/services.html +++ b/layouts/partials/head/services.html @@ -1,4 +1,5 @@ {{ partial "service/google-analytics" . }} +{{ partial "service/google-recaptcha" . }} {{ partial "service/google-tag-manager" . }} {{ partial "service/baidu-analytics" . }} {{ partial "service/busuanzi" . }} \ No newline at end of file diff --git a/layouts/partials/service/google-recaptcha.html b/layouts/partials/service/google-recaptcha.html new file mode 100644 index 0000000..93cde90 --- /dev/null +++ b/layouts/partials/service/google-recaptcha.html @@ -0,0 +1,3 @@ +{{ if $.Site.Params.googleRecaptcha }} + +{{ end }} \ No newline at end of file