mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
4a940da1a2
commit
5e5510cfcf
13 changed files with 53 additions and 27 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue