Automatically load the tweet script if this is a tweet post

This commit is contained in:
Oliver Davies 2019-06-06 19:40:34 +01:00
parent 0371dd89ce
commit 1e633b3514

View file

@ -26,7 +26,7 @@
{% endblock %}
{% block scripts %}
{% if page.has_tweets %}
{% if page.has_tweets or page.type == 'tweet' %}
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}