{% macro seo_metadata(article) %} {% if article.date %} {% endif %} {% if article.locale_modified and article.modified %} {% endif %} {% from '_includes/_defaults.html' import TWITTER_USERNAME with context %} {%if TWITTER_USERNAME %} {% endif %} {% if article.social_media_image %} {% else %} {% from '_includes/_defaults.html' import SOCIAL_MEDIA_IMAGE with context %} {% if SOCIAL_MEDIA_IMAGE %} {% endif %} {% endif %} {% endmacro %}