forked from daattali/beautiful-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsocial-share.html
More file actions
39 lines (33 loc) · 1.62 KB
/
social-share.html
File metadata and controls
39 lines (33 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% if site.share-links-active.twitter == false and site.share-links-active.facebook == false and site.share-links-active.google == false and site.share-links-active.linkedin == false %}
{% else %}
<section id = "social-share-section">
<!--- Share on Twitter -->
{% unless site.share-links-active.twitter == false %}
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
</a>
{% endunless %}
<!--- Share on Facebook -->
{% unless site.share-links-active.facebook == false %}
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
class="btn btn-social-icon btn-facebook" title="Share on Facebook">
<span class="fa fa-fw fa-facebook" aria-hidden="true"></span>
</a>
{% endunless %}
<!--- Share on Google Plus -->
{% unless site.share-links-active.google == false %}
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}"
class="btn btn-social-icon btn-google" title="Share on Google+">
<span class="fa fa-fw fa-google-plus" aria-hidden="true"></span>
</a>
{% endunless %}
<!--- Share on LinkedIn -->
{% unless site.share-links-active.linkedin == false %}
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}"
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
<span class="fa fa-fw fa-linkedin" aria-hidden="true"></span>
</a>
{% endunless %}
</section>
{% endif %}