mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Adds Facebook Plugin
This commit is contained in:
@ -3,6 +3,15 @@
|
||||
{% assign post = page %}
|
||||
{% endif %}
|
||||
|
||||
<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/sdk.js#xfbml=1&version=v2.7";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
|
||||
<div id="header" class="container-fluid {% if page.is_post %}post-header{% endif %}">
|
||||
{% if post.image != nil %}
|
||||
<div class="cover-image center-vertical"><img class="center-both img-center-fill" src="/images/posts/{{ post.image }}" alt=""></div>
|
||||
|
||||
@ -16,6 +16,14 @@ layout: layout
|
||||
{{ content }}
|
||||
</section>
|
||||
|
||||
<br/>
|
||||
|
||||
<div class="fb-like" data-href="{{ site.url }}{{ page.url }}" data-layout="standard" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div class="fb-comments" data-href="{{ site.url }}{{ page.url }}" data-width="100%" data-numposts="5"></div>
|
||||
|
||||
</section>
|
||||
|
||||
<div id="related-articles-container" class="container-fluid">
|
||||
|
||||
Reference in New Issue
Block a user