aboutsummaryrefslogtreecommitdiff
path: root/templates/_macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_macros.html')
-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 %}