From 2a30d9a1eb5219e5335d1afdd214204d61ea6367 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Wed, 21 Sep 2011 13:37:59 +0200 Subject: Refactored inclusion of disqus script - Added ARIA setting `aria-live="polite"` to comment output - Removed duplicate
from page/post templates - Moved blocking JavaScript loading to the end of the document body. - Merged JavaScript code for index and pages/posts using conditionals - Moved global JavaScript disqus variables into the anonymous function to stop pollution of global namespace --- .themes/classic/source/_layouts/post.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.themes/classic/source/_layouts/post.html') diff --git a/.themes/classic/source/_layouts/post.html b/.themes/classic/source/_layouts/post.html index ce8a5dea..e81cc787 100644 --- a/.themes/classic/source/_layouts/post.html +++ b/.themes/classic/source/_layouts/post.html @@ -17,10 +17,10 @@ single: true {% endunless %} -{% if site.disqus_short_name and page.comments != false %} +{% if site.disqus_short_name and page.comments == true %}

Comments

-
{% include post/disqus_thread.html %}
+
{% include post/disqus_thread.html %}
{% endif %}
-- cgit v1.2.1