diff --git a/source/_partials/footer-scripts.html.twig b/source/_partials/footer-scripts.html.twig
index 1f7786cd..a793a03e 100644
--- a/source/_partials/footer-scripts.html.twig
+++ b/source/_partials/footer-scripts.html.twig
@@ -5,7 +5,7 @@
{% block scripts %}{% endblock %}
-{% if page.tweets == true %}
+{% if page.tweets is defined and page.tweets == true %}
{% endif %}