From 4f6467ce08628a72ecf1373b2fe660bb819a635f Mon Sep 17 00:00:00 2001 From: Leroy Jiang Date: Sat, 5 Jan 2013 16:22:32 +0800 Subject: [PATCH] add disqus_url to comment js block --- pelican/themes/notmyidea/templates/article.html | 3 ++- tests/output/custom/a-markdown-powered-article.html | 1 + tests/output/custom/article-1.html | 1 + tests/output/custom/article-2.html | 1 + tests/output/custom/article-3.html | 1 + tests/output/custom/drafts/a-draft-article.html | 12 ------------ tests/output/custom/filename_metadata-example.html | 1 + tests/output/custom/oh-yeah-fr.html | 1 + tests/output/custom/oh-yeah.html | 1 + tests/output/custom/second-article-fr.html | 1 + tests/output/custom/second-article.html | 1 + tests/output/custom/this-is-a-super-article.html | 1 + tests/output/custom/unbelievable.html | 1 + 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/pelican/themes/notmyidea/templates/article.html b/pelican/themes/notmyidea/templates/article.html index 737d3789..516fd3b5 100644 --- a/pelican/themes/notmyidea/templates/article.html +++ b/pelican/themes/notmyidea/templates/article.html @@ -14,12 +14,13 @@ {% include 'article_infos.html' %} {{ article.content }} - {% if DISQUS_SITENAME %} + {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}

Comments !

-
diff --git a/tests/output/custom/filename_metadata-example.html b/tests/output/custom/filename_metadata-example.html index af05059b..432a1cdf 100644 --- a/tests/output/custom/filename_metadata-example.html +++ b/tests/output/custom/filename_metadata-example.html @@ -61,6 +61,7 @@