|
| 1 | +<!-- Check if any share-links are active --> |
| 2 | +{% assign any-share-links = false %} |
| 3 | +{% for links in site.share-links-active %} |
| 4 | + {% if links[1] == true %} |
| 5 | + {% assign any-share-links = true %} |
| 6 | + {% endif %} |
| 7 | +{% endfor %} |
| 8 | + |
| 9 | +{% if any-share-links %} |
| 10 | +<sectionid = "social-share-section"> |
| 11 | + |
| 12 | +<!--- Share on Twitter --> |
| 13 | + {% if site.share-links-active.twitter %} |
| 14 | +<ahref="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }}" |
| 15 | +class="btn btn-social-icon btn-twitter"title="Share on Twitter"> |
| 16 | +<spanclass="fa fa-fw fa-twitter"aria-hidden="true"></span> |
| 17 | +</a> |
| 18 | + {% endif %} |
| 19 | + |
| 20 | +<!--- Share on Facebook --> |
| 21 | + {% if site.share-links-active.facebook %} |
| 22 | +<ahref="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" |
| 23 | +class="btn btn-social-icon btn-facebook"title="Share on Facebook"> |
| 24 | +<spanclass="fa fa-fw fa-facebook"aria-hidden="true"></span> |
| 25 | +</a> |
| 26 | + {% endif %} |
| 27 | + |
| 28 | +<!--- Share on Google Plus --> |
| 29 | + {% if site.share-links-active.google %} |
| 30 | +<ahref="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" |
| 31 | +class="btn btn-social-icon btn-google"title="Share on Google+"> |
| 32 | +<spanclass="fa fa-fw fa-google-plus"aria-hidden="true"></span> |
| 33 | +</a> |
| 34 | + {% endif %} |
| 35 | + |
| 36 | +<!--- Share on LinkedIn --> |
| 37 | + {% if site.share-links-active.linkedin %} |
| 38 | +<ahref="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}" |
| 39 | +class="btn btn-social-icon btn-linkedin"title="Share on LinkedIn"> |
| 40 | +<spanclass="fa fa-fw fa-linkedin"aria-hidden="true"></span> |
| 41 | +</a> |
| 42 | + {% endif %} |
| 43 | + |
| 44 | +</section> |
| 45 | + |
| 46 | +{% endif %} |