2016-08-07 01:42:15 +02:00
|
|
|
<!-- Check if any share-links are active -->
|
|
|
|
{% assign any-share-links = false %}
|
|
|
|
{% for links in site.share-links-active %}
|
|
|
|
{% if links[1] == true %}
|
|
|
|
{% assign any-share-links = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if any-share-links %}
|
|
|
|
<section id = "social-share-section">
|
2017-03-30 19:01:15 +02:00
|
|
|
<span class="sr-only">Share: </span>
|
2016-08-01 03:30:03 +02:00
|
|
|
|
|
|
|
{% if site.share-links-active.twitter %}
|
2017-03-30 19:01:15 +02:00
|
|
|
<!--- Share on Twitter -->
|
2016-10-09 00:30:31 +02:00
|
|
|
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
|
2016-08-07 01:42:15 +02:00
|
|
|
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
|
|
|
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
|
2017-03-30 19:01:15 +02:00
|
|
|
<span class="sr-only">Twitter</span>
|
2016-08-01 03:30:03 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if site.share-links-active.facebook %}
|
2017-03-30 19:01:15 +02:00
|
|
|
<!--- Share on Facebook -->
|
2016-08-07 01:42:15 +02:00
|
|
|
<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>
|
2017-03-30 19:01:15 +02:00
|
|
|
<span class="sr-only">Facebook</span>
|
2016-08-01 03:30:03 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if site.share-links-active.linkedin %}
|
2017-03-30 19:01:15 +02:00
|
|
|
<!--- Share on LinkedIn -->
|
2016-08-07 01:42:15 +02:00
|
|
|
<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>
|
2017-03-30 19:01:15 +02:00
|
|
|
<span class="sr-only">LinkedIn</span>
|
2016-08-01 03:30:03 +02:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</section>
|
2016-08-07 01:42:15 +02:00
|
|
|
|
2016-10-09 00:30:31 +02:00
|
|
|
{% endif %}
|