@ -8,7 +8,7 @@
{% endif %}
{% endif %}
{% endmacro %}
{% endmacro %}
{% macro nav_list_items_recursive (items) %}
{% macro nav_list_items_main (items) %}
{% if items %}
{% if items %}
< ul >
< ul >
{% for item in items %}
{% for item in items %}
@ -22,19 +22,42 @@
>
>
< a href = "{{ section.permalink }}" > {{ section.title }}< / a >
< a href = "{{ section.permalink }}" > {{ section.title }}< / a >
{% if section.subsections %}
{% if section.subsections %}
< ul >
< div >
{% for subsection in section.subsections %}
{% if section.extra.nav_title_left and section.extra.nav_title_right %}
{% set subsection = get_section(path=subsection) %}
< div class = "title" > {{ section.extra.nav_title_left }}< / div >
< li >
< div class = "title" > {{ section.extra.nav_title_right }}< / div >
< a href = "{{ subsection.permalink }}" >
{% endif %}
{% if subsection.extra.icon %}
< ul >
< span class = "{{ subsection.extra.icon | safe }}" > < / span >
{% for subsection in section.subsections %}
{% endif %}
{% set subsection = get_section(path=subsection) %}
{{ subsection.title }}
{% if not subsection.extra.nav_right %}
< / a >
< li >
< / li >
< a href = "{{ subsection.permalink }}" >
{% endfor %}
{% if subsection.extra.icon %}
< / ul >
< span class = "{{ subsection.extra.icon | safe }}" > < / span >
{% endif %}
{{ subsection.title }}
< / a >
< / li >
{% endif %}
{% endfor %}
< / ul >
< ul >
{% for subsection in section.subsections %}
{% set subsection = get_section(path=subsection) %}
{% if subsection.extra.nav_right %}
< li >
< a href = "{{ subsection.permalink }}" >
{% if subsection.extra.icon %}
< span class = "{{ subsection.extra.icon | safe }}" > < / span >
{% endif %}
{{ subsection.title }}
< / a >
< / li >
{% endif %}
{% endfor %}
< / ul >
< / div >
{% endif %}
{% endif %}
< / li >
< / li >
{% endfor %}
{% endfor %}