Browse Source

Removes recaptcha

Abhinav Sarkar 4 months ago
parent
commit
52f5a50ee8
3 changed files with 7 additions and 4 deletions
  1. 1
    0
      css/_comments.scss
  2. 1
    1
      staticman.yml
  3. 5
    3
      templates/comment-list.html

+ 1
- 0
css/_comments.scss View File

@@ -8,6 +8,7 @@
8 8
     color: #eee;
9 9
     border: none;
10 10
     cursor: pointer;
11
+    margin-bottom: 0.25em;
11 12
     &:hover {
12 13
       background-color: #bd24bb;
13 14
     }

+ 1
- 1
staticman.yml View File

@@ -7,7 +7,7 @@ comments:
7 7
   format            : "frontmatter"
8 8
   moderation        : true
9 9
   reCaptcha:
10
-    enabled: true
10
+    enabled: false
11 11
     siteKey: "6LfX6DMUAAAAAK_kbS1LfKKy4bNJbsUmyZFADnfV"
12 12
     secret : "xE425Zd96uokSf/t1saMqEvj17HfjYJ4+/gv6B4uqA+PxiCjwSb8BUYeWrIBRKrz+YRLCkC53qSa9HYfBNWohuI1+9SBpw5XJ9WJkilJ/DaSjWP9FsKQM9OLdMDgGo8fUQ3hlfs4svgBzItjOitabrjvYI4u0k4RTsq5ccYISeo="
13 13
   path              : "comments/{options.slug}"

+ 5
- 3
templates/comment-list.html View File

@@ -6,8 +6,10 @@
6 6
     <fieldset>
7 7
       <input name="options[slug]" type="hidden" value="$post_slug$">
8 8
       <input id="comment-redirect" name="options[redirect]" type="hidden" value="$full_url$">
9
+      <!--
9 10
       <input type="hidden" name="options[reCaptcha][siteKey]" value="6LfX6DMUAAAAAK_kbS1LfKKy4bNJbsUmyZFADnfV">
10 11
       <input type="hidden" name="options[reCaptcha][secret]" value="xE425Zd96uokSf/t1saMqEvj17HfjYJ4+/gv6B4uqA+PxiCjwSb8BUYeWrIBRKrz+YRLCkC53qSa9HYfBNWohuI1+9SBpw5XJ9WJkilJ/DaSjWP9FsKQM9OLdMDgGo8fUQ3hlfs4svgBzItjOitabrjvYI4u0k4RTsq5ccYISeo=">
12
+       -->
11 13
       <input type="hidden" id="comment-parent" name="fields[reply_to]" value="">
12 14
       <textarea id="comment-text" name="fields[message]" required placeholder="Comment"></textarea>
13 15
       <span style="font-size: smaller">
@@ -18,9 +20,9 @@
18 20
       <div style="font-size: smaller; margin-bottom: 1em;">
19 21
           Email is used just to show an avatar image and is not displayed or stored
20 22
       </div>
21
-      <div class="g-recaptcha" data-sitekey="6LfX6DMUAAAAAK_kbS1LfKKy4bNJbsUmyZFADnfV"></div>
22
-      <div style="font-size: smaller;">Comments are moderated. They will appear below after they are approved.</div>
23
+      <!-- <div class="g-recaptcha" data-sitekey="6LfX6DMUAAAAAK_kbS1LfKKy4bNJbsUmyZFADnfV"></div> -->
23 24
       <input id="comment-form-submit" type="submit" value="Post Comment">
25
+      <div style="font-size: smaller;">Comments are moderated. They will appear below after they are approved.</div>
24 26
       <span id="comment-form-message"></span>
25 27
     </fieldset>
26 28
   </form>
@@ -34,6 +36,6 @@
34 36
   </div>
35 37
 </div>
36 38
 <script src="/js/comment-form.js" defer async></script>
37
-<script src="https://www.google.com/recaptcha/api.js" defer async></script>
39
+<!-- <script src="https://www.google.com/recaptcha/api.js" defer async></script> -->
38 40
 <script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.3/fetch.min.js" defer async></script>
39 41
 <script src="https://cdn.jsdelivr.net/npm/promise-polyfill@6.1.0/promise.min.js" defer async></script>

Loading…
Cancel
Save