{% set footer_content %} {% for tmpl in theme_article_footer %} {% include tmpl %} {% endfor %} {% endset %} {%- if title and pagename != root_doc and footer_content|trim -%} {%- endif -%}