From 1e9d96ba4e4bc433a275f5af1a9e3ca0602cdc00 Mon Sep 17 00:00:00 2001 From: Erick Ruiz de Chavez Date: Fri, 8 Jan 2021 08:41:07 -0500 Subject: [PATCH] Replace honeypot input with recaptcha --- _content/contact.njk | 14 ++++++++++---- _includes/default.njk | 5 +++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/_content/contact.njk b/_content/contact.njk index 0a77afc..0edd5b2 100644 --- a/_content/contact.njk +++ b/_content/contact.njk @@ -1,17 +1,23 @@ --- title: Contact +headscripts: + - https://www.google.com/recaptcha/api.js ---

{{ title }}

-
- - + + + - +
diff --git a/_includes/default.njk b/_includes/default.njk index e6a91ad..b490c86 100644 --- a/_includes/default.njk +++ b/_includes/default.njk @@ -6,6 +6,11 @@ {{ title + " - " if title }}{{ site.name }} + {%- if headscripts %} + {%- for script in headscripts %} + + {%- endfor %} + {%- endif %}