diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-11 17:53:45 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-11 17:53:45 +0200 |
commit | 7f558517f40833d7d80ddcfb4c356ce8dce18463 (patch) | |
tree | 39635be08337bb9038d5a0f6efdb9b525e4cc3a2 /templates/_macros.html | |
parent | e9e2af423557b50c416b68559bab7786bee35ff2 (diff) | |
download | guide.deuxfleurs.fr-7f558517f40833d7d80ddcfb4c356ce8dce18463.tar.gz guide.deuxfleurs.fr-7f558517f40833d7d80ddcfb4c356ce8dce18463.zip |
Premier ajout de contenu
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 %} |