diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html index 03ff1bb1..1ec6fe5e 100644 --- a/pelican/themes/notmyidea/templates/base.html +++ b/pelican/themes/notmyidea/templates/base.html @@ -79,5 +79,6 @@ {% include 'analytics.html' %} +{% include 'disqus_script.html' %} diff --git a/pelican/themes/notmyidea/templates/comments.html b/pelican/themes/notmyidea/templates/comments.html new file mode 100644 index 00000000..ea693afb --- /dev/null +++ b/pelican/themes/notmyidea/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/pelican/themes/notmyidea/templates/disqus_script.html b/pelican/themes/notmyidea/templates/disqus_script.html new file mode 100644 index 00000000..c4f442c8 --- /dev/null +++ b/pelican/themes/notmyidea/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/pelican/themes/notmyidea/templates/index.html b/pelican/themes/notmyidea/templates/index.html index 2f61d6d5..e6e7d816 100644 --- a/pelican/themes/notmyidea/templates/index.html +++ b/pelican/themes/notmyidea/templates/index.html @@ -21,7 +21,9 @@ {% include 'taglist.html' %} {{ article.content }} - + {% include 'comments.html' %} + + {% if loop.length > 1 %}

Other articles

@@ -49,6 +51,7 @@ {{ article.summary }} read more + {% include 'comments.html' %} {% endif %}