This commit is contained in:
2019-02-13 18:21:47 +01:00
parent 5eedee288e
commit 5e38ba5916
124 changed files with 376 additions and 7476 deletions
@@ -1,22 +1,8 @@
{% macro nav_loop(page) %}
{% import _self as macros %}
{% for p in page.children.visible %}
{% for p in page.children.visible if p.template == 'default' %}
{% set active_page = (p.active or p.activeChild) ? ' class="active"' : '' %}
{% if p.children.visible.count > 0 %}
<li>
<a href="{{ p.url }}"{{ active_page }}>
{{ p.menu }}
</a>
<ul>
{{ macros.nav_loop(p) }}
</ul>
</li>
{% else %}
<li>
<a href="{{ p.url }}"{{ active_page }}>
{{ p.menu }}
</a>
</li>
{% endif %}
{% include 'default.html.twig' with {blog: page, page: p} %}
{% endfor %}
{% endmacro %}