diff options
author | ADRN <adrien@luxeylab.net> | 2024-12-07 16:12:13 +0100 |
---|---|---|
committer | ADRN <adrien@luxeylab.net> | 2024-12-07 19:23:25 +0100 |
commit | 2a411fd1bc0d4e0a809eaf31096e2ed14048c2a8 (patch) | |
tree | 05b8639a111e9eedff1cf33083447716831fb19e /templates/_macros.html | |
parent | e8a76154659949db2f538fa77b08ed66a5534993 (diff) | |
download | guide.deuxfleurs.fr-2a411fd1bc0d4e0a809eaf31096e2ed14048c2a8.tar.gz guide.deuxfleurs.fr-2a411fd1bc0d4e0a809eaf31096e2ed14048c2a8.zip |
feat: desactivation de l'affichage de sections dans le menu superieur via le camp extra->hide_from_menu du header de la section
Diffstat (limited to 'templates/_macros.html')
-rw-r--r-- | templates/_macros.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/_macros.html b/templates/_macros.html index 4f8d852..8286314 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -13,7 +13,9 @@ <ul> {% for subpath in section.subsections %} {% set sub = get_section(path=subpath) %} - <li><a class="nav-item text" href="{{ sub.permalink }}">{{ sub.title }}</a></li> + {% if not 'hide_from_menu' in sub.extra or not sub.extra.hide_from_menu %} + <li><a class="nav-item text" href="{{ sub.permalink }}">{{ sub.title }}</a></li> + {% endif %} {% endfor %} {% if config.extra.juice_extra_menu %} {% for menu in config.extra.juice_extra_menu %} |