Adding Facebook Comments
This commit is contained in:
parent
e99e752a27
commit
683d1bec4d
2 changed files with 13 additions and 2 deletions
|
@ -73,7 +73,10 @@ JB :
|
|||
intensedebate :
|
||||
account : 123abc
|
||||
facebook :
|
||||
apikey : 123
|
||||
appid : 123
|
||||
num_posts: 5
|
||||
width: 580
|
||||
colorscheme: light
|
||||
|
||||
# Settings for analytics helper
|
||||
# Set 'provider' to the analytics provider you want to use.
|
||||
|
|
|
@ -1 +1,9 @@
|
|||
<h3>Facebook comments TODO!</h3>
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={{ site.JB.comments.facebook.appid }}";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
<div class="fb-comments" data-href="{{ site.production_url }}" data-num-posts="{{ site.JB.comments.facebook.num_posts }}" data-width="{{ site.JB.comments.facebook.width }}" data-colorscheme="{{ site.JB.comments.facebook.colorscheme }}"></div>
|
Loading…
Add table
Reference in a new issue