{% macro articles(_articles) %} {% for article in _articles %}
{% if article.path and getPageByPath(article.path) %} {% if article.articles.length > 0 %}
{% else %}
{% endif %} {% elif article.url %} {% if article.articles.length > 0 %}
{% else %}
{% endif %} {% else %}
{% endif %} {% if article.level != "0" and config.pluginsConfig['theme-default'].showLevel %}
{{ article.level }}.
{% endif %} {{ article.title }} {% if article.path or article.url %}
{% else %} {% endif %} {% if article.articles.length > 0 %}
{{ articles_two(article.articles, file, config) }}
{% endif %}
{% endfor %} {% endmacro %} {% macro articles_two(_arts) %} {% for art in _arts %}
{% if art.path and getPageByPath(art.path) %} {% if art.articles.length > 0 %}
{% else %}
{% endif %} {% elif art.url %} {% if art.articles.length > 0 %}
{% else %}
{% endif %} {% else %}
{% endif %} {% if art.level != "0" and config.pluginsConfig['theme-default'].showLevel %}
{{ art.level }}.
{% endif %} {{ art.title }} {% if art.path or art.url %}
{% else %} {% endif %} {% if art.articles.length > 0 %}
{{ articles_three(art.articles, file, config) }}
{% endif %}
{% endfor %} {% endmacro %} {% macro articles_three(_arts) %} {% for art in _arts %}
{% if art.path and getPageByPath(art.path) %}
{% elif art.url %}
{% else %}
{% endif %} {% if art.level != "0" and config.pluginsConfig['theme-default'].showLevel %}
{{ art.level }}.
{% endif %} {{ art.title }} {% if art.path or art.url %}
{% else %} {% endif %}
{% endfor %} {% endmacro %} {% block book_summary %}
{% for part in summary.parts %} {{ articles(part.articles, file, config) }} {% endfor %}
{% endblock %}