share_links.html 831 B

1234567891011121314151617181920212223
  1. {% macro share_links(article) %}
  2. {% if article.share_post and article.status != 'draft' %}
  3. <section>
  4. <p id="post-share-links">
  5. {% if article.share_post_intro %}
  6. {{ article.share_post_intro }}
  7. {% else %}
  8. {% from '_includes/_defaults.html' import SHARE_POST_INTRO with context %}
  9. {{ SHARE_POST_INTRO }}
  10. {% endif %}
  11. <a href="{{article.share_post['twitter']}}" target="_blank" title="Share on Twitter">Twitter</a>
  12. <a href="{{article.share_post['facebook']}}" target="_blank" title="Share on Facebook">Facebook</a>
  13. <a href="{{article.share_post['google-plus']}}" target="_blank" title="Share on Google Plus">Google+</a>
  14. <a href="{{article.share_post['email']}}" target="_blank" title="Share via Email">Email</a>
  15. </p>
  16. </section>
  17. {% endif %}
  18. {% endmacro %}