From 03cfbdc9b9b8fd5f2b712e3b7b2da02569c572e5 Mon Sep 17 00:00:00 2001 From: Avinal Kumar Date: Mon, 31 May 2021 00:07:03 +0530 Subject: [PATCH] comment system added Signed-off-by: Avinal Kumar --- pelicanconf.py | 12 ++++ .../alchemy/templates/include/comments.html | 62 ++++++++++++++----- 2 files changed, 57 insertions(+), 17 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index f9713ea..cf6d6ea 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -62,3 +62,15 @@ SITEMAP_SAVE_AS = 'sitemap.xml' DEFAULT_PAGINATION = 5 PYGMENTS_STYLE = 'manni' + +# Comments config + +FORM_COMMENTS = True + +FORM_PROPERTIES = { + 'name' : 'entry.982725972', + 'email':'entry.1652853191', + 'link':'entry.1641222305', + 'comment':'entry.1062656232', + 'action':'https://docs.google.com/forms/u/0/d/e/1FAIpQLSfL9T8WBRm-Ac2uyu74lJXSYOqAuF6lLIUAulRArCsuiI1ZRQ/formResponse' +} diff --git a/themes/alchemy/templates/include/comments.html b/themes/alchemy/templates/include/comments.html index 2835bd4..e9bbe31 100644 --- a/themes/alchemy/templates/include/comments.html +++ b/themes/alchemy/templates/include/comments.html @@ -1,21 +1,49 @@ -{% if DISQUS_SITENAME %} -
-
+{% if FORM_COMMENTS %} +
+ +
+
+
+ + + + You may put your GitHub Username. +
+
+ + + I'll never share your email with anyone + else. +
+
+
+ + + Enter upto 200 characters. +
+ +
+ +
+ - {% endif %} \ No newline at end of file