summaryrefslogtreecommitdiffstats
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, 1 insertions, 3 deletions
diff --git a/templates/macros.html b/templates/macros.html
index 23b5dbf..14dc9e7 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -6,9 +6,7 @@
{% set curr_url = get_url(path=section.path) %}
{% endif %}
{% set url = url | trim_end_matches(pat="/") %}
- {% if curr_url %}
- <a {% if curr_url == url %}class="active"{% endif %} href={{ url }}>{{ name }}</a>
- {% endif %}
+ <a {% if curr_url and curr_url == url %}class="active"{% endif %} href={{ url }}>{{ name }}</a>
{% endmacro nav %}
{% macro toc_item(item, depth=0) %}
<li>