@ -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,9 +22,30 @@
>
>
< a href = "{{ section.permalink }}" > {{ section.title }}< / a >
< a href = "{{ section.permalink }}" > {{ section.title }}< / a >
{% if section.subsections %}
{% if section.subsections %}
< div >
{% if section.extra.nav_title_left and section.extra.nav_title_right %}
< div class = "title" > {{ section.extra.nav_title_left }}< / div >
< div class = "title" > {{ section.extra.nav_title_right }}< / div >
{% endif %}
< ul >
{% for subsection in section.subsections %}
{% set subsection = get_section(path=subsection) %}
{% if not 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 >
< ul >
< ul >
{% for subsection in section.subsections %}
{% for subsection in section.subsections %}
{% set subsection = get_section(path=subsection) %}
{% set subsection = get_section(path=subsection) %}
{% if subsection.extra.nav_right %}
< li >
< li >
< a href = "{{ subsection.permalink }}" >
< a href = "{{ subsection.permalink }}" >
{% if subsection.extra.icon %}
{% if subsection.extra.icon %}
@ -33,8 +54,10 @@
{{ subsection.title }}
{{ subsection.title }}
< / a >
< / a >
< / li >
< / li >
{% endif %}
{% endfor %}
{% endfor %}
< / ul >
< / ul >
< / div >
{% endif %}
{% endif %}
< / li >
< / li >
{% endfor %}
{% endfor %}