Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6 KiB

  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. {% if any-share-links %}
  9. <section id = "social-share-section">
  10. <!--- Share on Twitter -->
  11. {% if site.share-links-active.twitter %}
  12. <a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
  13. class="btn btn-social-icon btn-twitter" title="Share on Twitter">
  14. <span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
  15. </a>
  16. {% endif %}
  17. <!--- Share on Facebook -->
  18. {% if site.share-links-active.facebook %}
  19. <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
  20. class="btn btn-social-icon btn-facebook" title="Share on Facebook">
  21. <span class="fa fa-fw fa-facebook" aria-hidden="true"></span>
  22. </a>
  23. {% endif %}
  24. <!--- Share on Google Plus -->
  25. {% if site.share-links-active.google %}
  26. <a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}"
  27. class="btn btn-social-icon btn-google" title="Share on Google+">
  28. <span class="fa fa-fw fa-google-plus" aria-hidden="true"></span>
  29. </a>
  30. {% endif %}
  31. <!--- Share on LinkedIn -->
  32. {% if site.share-links-active.linkedin %}
  33. <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}"
  34. class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
  35. <span class="fa fa-fw fa-linkedin" aria-hidden="true"></span>
  36. </a>
  37. {% endif %}
  38. </section>
  39. {% endif %}