Skip to content

Commit

Permalink
reCaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-nad committed Nov 4, 2020
1 parent 19c95ec commit 0cad276
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
6 changes: 5 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!DOCTYPE html>
<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
{{- partial "head.html" . -}}
<head>{{- partial "head.html" . -}}
{{- block "customjs" . }}{{- end }}
{{- block "customcss" . }}{{- end }}
</head>


<body>
{{- partial "preloader.html" . -}}
Expand Down
6 changes: 6 additions & 0 deletions layouts/contact/list.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ define "customjs" }}<script src="https://www.google.com/recaptcha/api.js" async defer></script>{{ end }}

{{ define "main" }} {{ partial "page-header.html" . }}
<section class="section bg-white">
<div class="container">
Expand All @@ -13,27 +15,31 @@
id="name"
name="name"
placeholder="Your Name"
required="true"
/>
<input
type="email"
class="form-control mb-3"
id="mail"
name="mail"
placeholder="Your Email"
required="true"
/>
<input
type="text"
class="form-control mb-3"
id="subject"
name="subject"
placeholder="Subject"
required="true"
/>
<textarea
name="message"
id="message"
class="form-control mb-3"
placeholder="Your Message"
></textarea>
<div class="g-recaptcha" data-sitekey="6Leb0d4ZAAAAAGVyhDRwJVu3V4XT27wc7z0RDKab"></div>
<input
type="checkbox"
name="{{ site.Params.custom_honeypot }}"
Expand Down
3 changes: 0 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<head>
<style>
@media (max-width: 768px)
{
Expand Down Expand Up @@ -38,5 +37,3 @@
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/google_analytics.html" . }}
{{ template "_internal/google_analytics_async.html" . }}

</head>
13 changes: 0 additions & 13 deletions netlify.toml

This file was deleted.

0 comments on commit 0cad276

Please sign in to comment.