From 7c7e47bba795a7edf11d5aa187a8c65bb02c91c1 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 21 Nov 2017 21:31:08 -0800 Subject: [PATCH] Facebook try #2. --- _includes/facebook-comments.html | 8 ++++++++ _includes/facebook-like-post.html | 8 ++++++++ _includes/facebook.html | 10 ++++++++++ _layouts/default.html | 1 + _layouts/post.html | 2 ++ 5 files changed, 29 insertions(+) create mode 100644 _includes/facebook-comments.html create mode 100644 _includes/facebook-like-post.html create mode 100644 _includes/facebook.html diff --git a/_includes/facebook-comments.html b/_includes/facebook-comments.html new file mode 100644 index 00000000..a87dd1d7 --- /dev/null +++ b/_includes/facebook-comments.html @@ -0,0 +1,8 @@ +{% if site.facebook.app_id %} +
+
+ {% assign canonical_url = page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url %} +
+
+
+{% endif %} diff --git a/_includes/facebook-like-post.html b/_includes/facebook-like-post.html new file mode 100644 index 00000000..a59fc843 --- /dev/null +++ b/_includes/facebook-like-post.html @@ -0,0 +1,8 @@ +{% if site.facebook.app_id %} +
+
+ {% assign canonical_url = page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url %} +
+
+
+{% endif %} diff --git a/_includes/facebook.html b/_includes/facebook.html new file mode 100644 index 00000000..28735a00 --- /dev/null +++ b/_includes/facebook.html @@ -0,0 +1,10 @@ +{% if site.facebook.app_id %} +
^ + +{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index c99f6e63..f1ec02a8 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,6 +5,7 @@ + {% include facebook.html %} {% include sidebar.html %}
diff --git a/_layouts/post.html b/_layouts/post.html index 2a6c7c1d..8dc6a401 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -6,6 +6,8 @@

{{ page.title }}

{{ content }} + {% include facebook-like-post.html %} + {% include facebook-comments.html %}