From 15f629b7efeae0ff754f3613387fee6c8a506d8c Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Mon, 19 Dec 2016 17:05:28 +0100 Subject: [PATCH] Removed lektor disqus comments, using simple script --- Felipe Martin.lektorproject | 1 - configs/disqus-comments.ini | 1 - templates/blog/post.html | 4 +++- templates/macros/blog.html | 2 +- templates/macros/comments.html | 20 ++++++++++++++++++++ 5 files changed, 24 insertions(+), 4 deletions(-) delete mode 100644 configs/disqus-comments.ini create mode 100644 templates/macros/comments.html diff --git a/Felipe Martin.lektorproject b/Felipe Martin.lektorproject index 6922e9e..3c370e8 100644 --- a/Felipe Martin.lektorproject +++ b/Felipe Martin.lektorproject @@ -2,7 +2,6 @@ name = Felipe Martin [packages] -lektor-disqus-comments = 0.2 lektor-markdown-highlighter = 0.1 [servers.production] diff --git a/configs/disqus-comments.ini b/configs/disqus-comments.ini deleted file mode 100644 index ecd4fdb..0000000 --- a/configs/disqus-comments.ini +++ /dev/null @@ -1 +0,0 @@ -shortname = fmartingr \ No newline at end of file diff --git a/templates/blog/post.html b/templates/blog/post.html index 07174da..22cae00 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -8,7 +8,9 @@ {% block main_content %} {{ render_blog_post(this) }} {% if this.comments_enabled %} -
{{ render_disqus_comments() }}
+
+ {% from 'macros/comments.html' import disqus with context %} + {{ disqus() }} {% else %}
Comments have been disabled in this post, if you want to contact me please go ahead! diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 336e0a8..54f0bdd 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -3,7 +3,7 @@

{{ post.title }}

- Published on {{ post.pub_date }} with no comments. + Published on {{ post.pub_date }} with no comments.
{% if from_index and summary|length > 1 %} diff --git a/templates/macros/comments.html b/templates/macros/comments.html new file mode 100644 index 0000000..59ff5a0 --- /dev/null +++ b/templates/macros/comments.html @@ -0,0 +1,20 @@ +{% macro disqus(shortname) -%} + +{%- endmacro %}