{% macro comments(article) %} {% if DISQUS_SITENAME and SITEURL and article.status != 'draft' %}
{% if article.comments_intro %}

{{ article.comments_intro }}

{% elif COMMENTS_INTRO %}

{{ COMMENTS_INTRO }}

{% endif %}
{% from 'disqus_scripts.html' import disqus_comments_script with context %} {{ disqus_comments_script(article) }}
{% endif %} {% endmacro %} {% macro comments_script(article) %} {% if DISQUS_SITENAME and SITEURL and article.status != 'draft' %} {% from 'disqus_scripts.html' import disqus_misc_scripts with context %} {{ disqus_misc_scripts() }} {% endif %} {% endmacro %}