fb-comment.html 712 B

1234567891011121314
  1. {%- if site.fb_comment_id -%}
  2. <div class="comments">
  3. <div id="fb-root"></div>
  4. <script>(function(d, s, id) {
  5. var js, fjs = d.getElementsByTagName(s)[0];
  6. if (d.getElementById(id)) return;
  7. js = d.createElement(s); js.id = id;
  8. js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
  9. fjs.parentNode.insertBefore(js, fjs);
  10. }(document, 'script', 'facebook-jssdk'));</script>
  11. <div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
  12. <noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
  13. </div>
  14. {%- endif -%}