Skip to content

Commit

Permalink
Add and update all socials
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Apr 19, 2021
1 parent 133e6d1 commit d7ca5e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions _data/social.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ feed:
share:
facebook: true
twitter: true
tumblr:
pinterest:
tumblr: true
pinterest: true
pocket: true
reddit: true
linkedin:
wordpress:
linkedin: true
wordpress: true
email: true
16 changes: 8 additions & 8 deletions _includes/share_buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
<div class="meta">Share</div>
{% if site.data.social.share.facebook or site.theme_settings.share_buttons.facebook %}
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" target="_blank" title="{{ site.data.social.language.str_share_on }} Facebook">
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url }}" target="_blank" title="{{ site.data.social.language.str_share_on }} Facebook">
<i class="fab fa-facebook-square fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_share_on | default: "Share on" }} Facebook</span>
</a>
</li>
{% endif %} {% if site.data.social.share.twitter or site.theme_settings.twitter %}
<li>
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" target="_blank" title="{{ site.data.social.language.str_tweet }}">
<a href="https://twitter.com/intent/tweet?text={{ page.title | strip_html | url_encode }}%20{{ page.url | absolute_url | url_encode }}" target="_blank" title="{{ site.data.social.language.str_tweet }}">
<i class="fab fa-twitter-square fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_tweet | default: "Tweet" }}</span>
</a>
</li>
{% endif %} {% if site.data.social.share.tumblr or site.theme_settings.tumblr %}
<li>
<a href="http://www.tumblr.com/share?v=3&u={{ page.url | absolute_url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.data.social.language.str_share_on }} Tumblr">
<a href="https://www.tumblr.com/share?v=3&u={{ page.url | absolute_url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | strip_html | url_encode }}&s=" target="_blank" title="{{ site.data.social.language.str_share_on }} Tumblr">
<i class="fab fa-tumblr-square fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_share_on | default: "Share on" }} Tumblr</span>
</a>
Expand All @@ -41,7 +41,7 @@
</li>
{% endif %} {% if site.data.social.share.pocket or site.theme_settings.pocket %}
<li>
<a href="https://getpocket.com/save?url={{ page.url | absolute_url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.data.social.language.str_add_to }} Pocket">
<a href="https://getpocket.com/save?url={{ page.url | absolute_url }}&title={{ page.title | strip_html | url_encode }}%20%7C%20{{ site.title | strip_html | url_encode }}" target="_blank" title="{{ site.data.social.language.str_add_to }} Pocket">
<span class="fa-stack fa-1x" style="vertical-align: top">
<i class="fas fa-square fa-stack-2x" aria-hidden="true"></i>
<i class="fab fa-get-pocket fa-stack-1x fa-inverse" aria-hidden="true"></i>
Expand All @@ -51,28 +51,28 @@
</li>
{% endif %} {% if site.data.social.share.reddit or site.theme_settings.reddit %}
<li>
<a href="http://www.reddit.com/submit?url={{ page.url | absolute_url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}" target="_blank" title="{{ site.data.social.language.str_share_on }} Reddit">
<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url }}&title={{ page.title | strip_html | url_encode }}%20%7C%20{{ site.title | strip_html | url_encode }}" target="_blank" title="{{ site.data.social.language.str_share_on }} Reddit">
<i class="fab fa-reddit-square fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_share_on | default: "Share on" }} Reddit</span>
</a>
</li>
{% endif %} {% if site.data.social.share.linkedin or site.theme_settings.linkedin %}
<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url }}&title={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&summary=&source={{ page.url | absolute_url }}" target="_blank" title="{{ site.data.social.language.str_share_on }} LinkedIn">
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url }}&title={{ page.title | strip_html | url_encode }}%20%7C%20{{ site.title | strip_html | url_encode }}&summary=&source={{ page.url | absolute_url }}" target="_blank" title="{{ site.data.social.language.str_share_on }} LinkedIn">
<i class="fab fa-linkedin fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_share_on | default: "Share on" }} LinkedIn</span>
</a>
</li>
{% endif %} {% if site.data.social.share.wordpress or site.theme_settings.wordpress %}
<li>
<a href="http://wordpress.com/press-this.php?u={{ page.url | absolute_url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.data.social.language.str_share_on }} WordPress">
<a href="https://wordpress.com/press-this.php?u={{ page.url | absolute_url }}&quote={{ page.title | strip_html | url_encode }}%20%7C%20{{ site.title | strip_html | url_encode }}&s=" target="_blank" title="{{ site.data.social.language.str_share_on }} WordPress">
<i class="fab fa-wordpress fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_share_on | default: "Share on" }} WordPress</span>
</a>
</li>
{% endif %} {% if site.data.social.share.email or site.theme_settings.email %}
<li>
<a href="mailto:?subject={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&body=:%20{{ page.url | absolute_url }}" target="_blank" title="{{ site.data.social.language.str_email }}">
<a href="mailto:?subject={{ page.title }}%20%7C%20{{ site.title }}&body={{ page.url | absolute_url }}" target="_blank" title="{{ site.data.social.language.str_email }}">
<i class="fas fa-envelope-square fa-2x" aria-hidden="true"></i>
<span class="sr-only">{{ site.data.social.language.str_email | default: "Email" }}</span>
</a>
Expand Down

0 comments on commit d7ca5e9

Please sign in to comment.