Skip to content

Commit

Permalink
Fix social shares by making links absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmanc committed Jun 4, 2019
1 parent d2e87df commit e2f8047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/social_share.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="social-share">
Share:
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ page.url | relative_url }}&via={{ site.twitter.username }}&related={{ site.twitter.username }}" rel="nofollow" target="_blank" title="Share on Twitter">
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ page.url | absolute_url }}&via={{ site.twitter.username }}&related={{ site.twitter.username }}" rel="nofollow" target="_blank" title="Share on Twitter">
{% include icons/twitter.html %}
</a>
<a href="https://facebook.com/sharer.php?u={{ page.url | relative_url }}" rel="nofollow" target="_blank" title="Share on Facebook">
<a href="https://facebook.com/sharer.php?u={{ page.url | absolute_url }}" rel="nofollow" target="_blank" title="Share on Facebook">
{% include icons/facebook.html %}
</a>
</div>

0 comments on commit e2f8047

Please sign in to comment.