Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73c4290

Browse files
committed
add disqus
1 parent 93b2d3a commit 73c4290

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ baseurl: "" # the subpath of your site, e.g. /blog/
88
url: "http://rarce.github.io" # the base hostname & protocol for your site
99
twitter_username: rarce
1010
github_username: rarce
11+
disqus_shortname: robertoarce
1112

1213
# Build settings
1314
highlighter: pygments

_includes/disqus.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div id="disqus_thread"></div>
2+
<script type="text/javascript">
3+
var disqus_shortname = '{{ site.disqus_shortname }}';
4+
(function() {
5+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
6+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
7+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
8+
})();
9+
</script>
10+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
11+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

_layouts/post.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ <h1 class="post-title">{{ page.title }}</h1>
1313
</article>
1414

1515
</div>
16+
17+
{% include disqus.html %}

0 commit comments

Comments
 (0)