From 9d00ce90d38fccebe7d44c3237f1e3ed333432ca Mon Sep 17 00:00:00 2001 From: Asutosh Palai Date: Thu, 24 Nov 2016 16:03:42 +0530 Subject: [PATCH] Added facebook page plugin --- _includes/header.html | 9 +++++++++ _layouts/post.html | 23 +++++++++++++---------- css/base.scss | 4 ++++ 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index d354dc9..ca004d9 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -12,6 +12,15 @@ fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); +
+ +
{% if post.image != nil %}
diff --git a/_layouts/post.html b/_layouts/post.html index d2bec79..466353a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,20 +4,23 @@ layout: layout {% include header.html %}
-

- {{ page.title }} -

+

+ {{ page.title }} +

- - -
- {{ content }} + -
+
+
+ {{ content }} +
+
+ + +

diff --git a/css/base.scss b/css/base.scss index 7e8af4a..8963e93 100644 --- a/css/base.scss +++ b/css/base.scss @@ -540,6 +540,10 @@ blockquote { margin-top: 2em; } + .fb-page { + top:2em; + } + p img { display: block; margin: auto;