add fb comments in posts
This commit is contained in:
parent
17ae53f2bf
commit
ad9e309c57
4 changed files with 12 additions and 2 deletions
|
@ -22,7 +22,7 @@ email: fullhackerblog@gmail.com
|
|||
description: >- # this means to ignore newlines until "baseurl:"
|
||||
// notes on technology and life
|
||||
baseurl: "/" # the subpath of your site, e.g. /blog
|
||||
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
||||
url: "http://fullhacker.github.io" # the base hostname & protocol for your site, e.g. http://example.com
|
||||
twitter_username: fullhackerblog
|
||||
instagram_username: fullhackerblog
|
||||
facebook_username: fullhackerblog
|
||||
|
|
|
@ -12,5 +12,4 @@
|
|||
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
||||
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="{{ "/assets/type-js.js" | relative_url }}"></script>
|
||||
</head>
|
||||
|
|
|
@ -4,6 +4,15 @@
|
|||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
<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 = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
|
||||
<div class="site-container">
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@ layout: default
|
|||
{{ content }}
|
||||
</div>
|
||||
|
||||
<div class="fb-comments" data-href="{{site.url}}{{page.url}}" data-numposts="5"></div>
|
||||
|
||||
{% if site.disqus.shortname %}
|
||||
{% include disqus_comments.html %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue