blob: bc291b20c837f9d33442dd0945403b228c743a83 (
plain) (
blame)
1
2
3
4
|
{% if TWITTER_USERNAME %}
<a href="https://twitter.com/share" class="twitter-share-button" data-text="{{article.title}}" data-via="{{TWITTER_USERNAME}}">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
{% endif %}
|