From 52386a86897be5ffe4a2833819e1efb8518e3e6f Mon Sep 17 00:00:00 2001 From: gilsondev Date: Wed, 10 Dec 2014 18:59:23 -0200 Subject: [PATCH] Inserting disqus comment' --- templates/article.html | 18 ++++++++++++++++++ templates/comments.html | 1 + templates/index.html | 1 + 3 files changed, 20 insertions(+) create mode 100644 templates/comments.html diff --git a/templates/article.html b/templates/article.html index 61aa6ea..95cf39d 100755 --- a/templates/article.html +++ b/templates/article.html @@ -54,4 +54,22 @@
+ + {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} +
+

Comments !

+
+ + +
+ {% endif %} {% endblock content %} diff --git a/templates/comments.html b/templates/comments.html new file mode 100644 index 0000000..bb033c0 --- /dev/null +++ b/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/templates/index.html b/templates/index.html index 388840e..e798b78 100755 --- a/templates/index.html +++ b/templates/index.html @@ -38,6 +38,7 @@ {{ author }} {% endfor %} on {{ article.locale_date }} + {% include 'comments.html' %}