add disquis comments to posts

This commit is contained in:
mourner 2012-07-30 01:34:17 +03:00
parent 9303b35d21
commit 4b8e9e4a29
2 changed files with 20 additions and 0 deletions

View File

@ -11,3 +11,19 @@ post: true
<p class="post-meta">Posted on {{ page.date | date_to_long_string }} by <a href="http://agafonkin.com/en">Vladimir Agafonkin</a></p>
{{ content }}
<div id="disqus_thread"></div>
<script>
var disqus_shortname = 'leafletjs';
// var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

View File

@ -514,3 +514,7 @@ p.notice {
color: #888;
margin-top: -1em;
}
#disqus_thread {
margin-top: 3em;
}