From 2248a4b1ba6c4ecb50058c709d7bf9d37ea4f27f Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 30 Mar 2018 18:39:54 -0400 Subject: [PATCH] Add conditionals for showing reCaptcha keys in form --- CHANGELOG.md | 1 + _includes/comments.html | 12 +++++++----- docs/_docs/18-history.md | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 101dc1ec..4a640bae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Bug Fixes * Use correct text string for "Back to Top" link. [#1595](https://github.com/mmistakes/minimal-mistakes/issues/1595) +* Add conditionals for showing `reCaptcha.siteKey` and `reCaptcha.secret` in Staticman comments form. ## [4.11.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.1) diff --git a/_includes/comments.html b/_includes/comments.html index a57794e8..8709d694 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -77,17 +77,19 @@ - - + {% if site.reCaptcha.siteKey %}{% endif %} + {% if site.reCaptcha.secret %}{% endif %} -
-
-
+ {% if site.reCaptcha.siteKey %} +
+
+
+ {% endif %}
diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index cf7e2e24..24ed8b5c 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -4,7 +4,7 @@ permalink: /docs/history/ excerpt: "Change log of enhancements and bug fixes made to the theme." sidebar: nav: docs -last_modified_at: 2018-03-29T12:48:09-04:00 +last_modified_at: 2018-03-30T18:39:37-04:00 toc: true --- @@ -17,6 +17,7 @@ toc: true ### Bug Fixes * Use correct text string for "Back to Top" link. [#1595](https://github.com/mmistakes/minimal-mistakes/issues/1595) +* Add conditionals for showing `reCaptcha.siteKey` and `reCaptcha.secret` in Staticman comments form. ## [4.11.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.11.1)