summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-10-26 15:27:12 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-10-26 15:27:12 -0400
commit92f4799f50c94f2de1d3d94b0fb20ff6d93614eb (patch)
treeb48b1af7b5260c1caabceb091476a839c8b71fe7 /_includes
parent30c1ec5d1f5860248b70ac0085f15ab8421fa321 (diff)
downloadcobalt-site-92f4799f50c94f2de1d3d94b0fb20ff6d93614eb.tar.xz
cobalt-site-92f4799f50c94f2de1d3d94b0fb20ff6d93614eb.zip
Added FB social sharing link to posts.
Diffstat (limited to '_includes')
-rw-r--r--_includes/social-share-fb.liquid19
-rw-r--r--_includes/social-share.liquid14
2 files changed, 33 insertions, 0 deletions
diff --git a/_includes/social-share-fb.liquid b/_includes/social-share-fb.liquid
new file mode 100644
index 0000000..843e511
--- /dev/null
+++ b/_includes/social-share-fb.liquid
@@ -0,0 +1,19 @@
+<div id="fb-root"></div>
+<script async
+ defer
+ crossorigin="anonymous"
+ src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v4.0">
+</script>
+
+{% assign link = "https://53hor.net/" | append: page.permalink | escape %}
+
+<div class="button is-rounded"
+ data-href={{ link }}
+ data-layout="button_count"
+ data-size="small">
+ <a target="_blank"
+ href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2F53hor.net%2F&amp;src=sdkpreparse"
+ class="fb-xfbml-parse-ignore">
+ Share to Facebook
+ </a>
+</div>
diff --git a/_includes/social-share.liquid b/_includes/social-share.liquid
new file mode 100644
index 0000000..acbf29d
--- /dev/null
+++ b/_includes/social-share.liquid
@@ -0,0 +1,14 @@
+<aside class="menu">
+ <p class="menu-label has-text-centered">
+ Social Sharing
+ </p>
+
+ <nav class="level">
+ <div class="level-item has-text-centered">
+ {% include social-share-fb.liquid %}
+ </div>
+ </nav>
+
+</aside>
+
+