Improve Disqus embed code in notmyidea theme

According to Disqus, the disqus_shortname variable is a required field.
Also added a <noscript> notice for those who have JS disabled.
This commit is contained in:
Justin Mayer 2013-10-27 09:27:30 -07:00
commit 5e5510cfcf
13 changed files with 53 additions and 27 deletions

View file

@ -54,14 +54,16 @@
<h2>Comments !</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_identifier = "article-2.html";
var disqus_url = "./article-2.html";
var disqus_shortname = 'blog-notmyidea';
var disqus_identifier = 'article-2.html';
var disqus_url = './article-2.html';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//blog-notmyidea.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the comments.</noscript>
</div>
</article>