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)