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/_includes/disqus.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .themes/classic/source/_includes/disqus.html (limited to '.themes/classic/source/_includes/disqus.html') diff --git a/.themes/classic/source/_includes/disqus.html b/.themes/classic/source/_includes/disqus.html new file mode 100644 index 00000000..4b913534 --- /dev/null +++ b/.themes/classic/source/_includes/disqus.html @@ -0,0 +1,22 @@ +{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %} +{% if site.disqus_short_name and page.comments != false %} + +{% endif %} -- cgit v1.2.1