aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorADRN <adrien@luxeylab.net>2024-12-07 16:12:13 +0100
committerADRN <adrien@luxeylab.net>2024-12-07 19:23:25 +0100
commit2a411fd1bc0d4e0a809eaf31096e2ed14048c2a8 (patch)
tree05b8639a111e9eedff1cf33083447716831fb19e /templates
parente8a76154659949db2f538fa77b08ed66a5534993 (diff)
downloadguide.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')
-rw-r--r--templates/_macros.html4
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 %}