-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
905e506
commit d3e8a51
Showing
6 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<section class="page__share"> | ||
{% if site.data.ui-text[site.locale].share_on_label %} | ||
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}</h4> | ||
{% endif %} | ||
|
||
{% include social-share/twitter.html %} | ||
{% include social-share/facebook.html %} | ||
{% include social-share/linkedin.html %} | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% assign onclick = "window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" %} | ||
{% assign sharetitle = site.data.ui-text[site.locale].share_on_label | default: 'Share on' | append: ' Facebook' %} | ||
{% assign posttitle = page.title | urlencode %} | ||
{% assign posturl = page.url | absolute_url | urlencode %} | ||
|
||
<a href="https://www.facebook.com/sharer/sharer.php?t={{ posttitle }}&u={{ posturl }}" class="btn btn--facebook" onclick="{{ onclick }}" title="{{ sharetitle }}"> | ||
<i class="fab fa-fw fa-facebook" aria-hidden="true"></i> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% assign onclick = "window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" %} | ||
{% assign sharetitle = site.data.ui-text[site.locale].share_on_label | default: 'Share on' | append: ' LinkedIn' %} | ||
{% assign posttitle = page.title | urlencode %} | ||
{% assign posturl = page.url | absolute_url | urlencode %} | ||
|
||
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url }}" class="btn btn--linkedin" onclick="{{ onclick }}" title="{{ sharetitle }}"> | ||
<i class="fab fa-fw fa-linkedin" aria-hidden="true"></i> | ||
</a> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% assign onclick = "window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" %} | ||
{% assign sharetitle = site.data.ui-text[site.locale].share_on_label | default: 'Share on' | append: ' X' %} | ||
{% assign posttitle = page.title | urlencode %} | ||
{% assign posturl = page.url | absolute_url | urlencode %} | ||
<a href="https://x.com/intent/post?text={{ posttitle }}%20{{ posturl }}" class="btn btn--x-twitter" onclick="{{ onclick }}" title="{{ sharetitle }}"> | ||
<i class="fab fa-fw fa-x-twitter" aria-hidden="true"></i> | ||
</a> |