From 8b2dcb2c39ab4ea30d24a5ae880bea13018c2401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20Sury=CC=81?= Date: Thu, 6 Feb 2014 13:31:05 +0100 Subject: [PATCH] Add support for ISSO (http://posativ.org/isso/) comment system. --- .../themes/notmyidea/templates/article.html | 29 +++++++++++-------- pelican/themes/notmyidea/templates/base.html | 1 + .../themes/notmyidea/templates/comments.html | 5 +++- .../notmyidea/templates/isso_script.html | 4 +++ 4 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 pelican/themes/notmyidea/templates/isso_script.html diff --git a/pelican/themes/notmyidea/templates/article.html b/pelican/themes/notmyidea/templates/article.html index 06110b43..4379a19a 100644 --- a/pelican/themes/notmyidea/templates/article.html +++ b/pelican/themes/notmyidea/templates/article.html @@ -14,20 +14,25 @@ {% include 'article_infos.html' %} {{ article.content }} - {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} + {% if SITEURL and article.status != "draft" %}

Comments !

-
- + {% if ISSO_SITEURL %} +
+ {% endif %} + {% if DISQUS_SITENAME %} +
+ + {% endif %}
{% endif %} diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html index b081515f..81c9bd5d 100644 --- a/pelican/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -79,5 +79,6 @@ {% include 'analytics.html' %} {% include 'piwik.html' %} {% include 'disqus_script.html' %} +{% include 'isso_script.html' %} diff --git a/pelican/themes/notmyidea/templates/comments.html b/pelican/themes/notmyidea/templates/comments.html index bb033c0f..ed86e672 100644 --- a/pelican/themes/notmyidea/templates/comments.html +++ b/pelican/themes/notmyidea/templates/comments.html @@ -1 +1,4 @@ -{% if DISQUS_SITENAME %}

There are comments.

{% endif %} +{% if SITEURL %}

There are + {% if DISQUS_SITENAME %}{% endif %} + {% if ISSO_SITEURL %}{% endif %} +Comments.

{% endif %} diff --git a/pelican/themes/notmyidea/templates/isso_script.html b/pelican/themes/notmyidea/templates/isso_script.html new file mode 100644 index 00000000..19feb256 --- /dev/null +++ b/pelican/themes/notmyidea/templates/isso_script.html @@ -0,0 +1,4 @@ +{% if ISSO_SITEURL %} + +{% endif %}