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

github.com/aerohub/hugo-identity-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grosser <development@stp-ip.net>2017-05-17 10:53:53 +0300
committerMichael Grosser <development@stp-ip.net>2017-05-17 10:54:51 +0300
commitb19794acb10933f229b1515f6c4a609f3607317b (patch)
treec943e03fa0c82aa279752130f6965a1d3e3ee80f
parent44ae4440253bdb469ddd26ed68e3adc7fcdf87f8 (diff)
Load recaptcha code later
-rw-r--r--layouts/partials/footer_scripts.html4
-rw-r--r--layouts/partials/header.html3
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html
index b97f45f..7a04e84 100644
--- a/layouts/partials/footer_scripts.html
+++ b/layouts/partials/footer_scripts.html
@@ -24,3 +24,7 @@
{{ range .Site.Params.custom_js }}
<script src="{{ . | absURL }}"></script>
{{ end }}
+
+ {{ with .Site.Params.contact.captcha }}
+ <script src='https://www.google.com/recaptcha/api.js' async defer></script>
+ {{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 59022e8..6c84fae 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -36,7 +36,4 @@
<!--[if lte IE 9]><link rel="stylesheet" href="/assets/css/ie9.css" /><![endif]-->
<noscript><link rel="stylesheet" href="/assets/css/noscript.css" /></noscript>
- {{ with .Site.Params.contact.captcha }}
- <script src='https://www.google.com/recaptcha/api.js' async defer></script>
- {{ end }}
</head>