diff options
Diffstat (limited to 'templates/_macros.html')
-rw-r--r-- | templates/_macros.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/_macros.html b/templates/_macros.html index 88a2f47..7c301a9 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -8,8 +8,9 @@ </a> <nav> - {% for page in section.pages %} - <a class="nav-item subtitle-text" href="{{ page.permalink }}">{{ page.title }}</a> + {% for subpath in section.subsections %} + {% set sub = get_section(path=subpath) %} + <a class="nav-item subtitle-text" href="{{ sub.permalink }}">{{ sub.title }}</a> {% endfor %} {% if config.extra.juice_extra_menu %} {% for menu in config.extra.juice_extra_menu %} @@ -17,4 +18,4 @@ {% endfor %} {% endif %} </nav> -{% endmacro render_header %}
\ No newline at end of file +{% endmacro render_header %} |