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/index.html | 47 +++++++++++++++------------------------ 1 file changed, 18 insertions(+), 29 deletions(-) (limited to '.themes/classic/source/index.html') diff --git a/.themes/classic/source/index.html b/.themes/classic/source/index.html index e7e96956..1e896b0d 100644 --- a/.themes/classic/source/index.html +++ b/.themes/classic/source/index.html @@ -3,35 +3,24 @@ layout: default ---
-{% assign index = true %} -{% for post in paginator.posts %} -{% assign content = post.content %} -
- {% include article.html %} -
-{% endfor %} - -{% if site.disqus_short_name %} - -{% endif %} + {% assign index = true %} + {% for post in paginator.posts %} + {% assign content = post.content %} +
+ {% include article.html %} +
+ {% endfor %} +