diff options
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/social-share-fb.liquid | 19 | ||||
-rw-r--r-- | _includes/social-share.liquid | 14 |
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&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> + + |