summaryrefslogtreecommitdiffstats
path: root/templates/macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/macros.html')
-rw-r--r--templates/macros.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/macros.html b/templates/macros.html
index 43b19e1..d5f1c57 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -10,8 +10,7 @@
</tr>
{% endmacro %}
{# render navbar item #}
-{% macro nav_item(name, path) %}
- {% set url = get_url(path=path,trailing_slash=true) %}
+{% macro nav_item(name, url) %}
<a {% if current_url and url == current_url %}class="active"{% endif %} href={{ url }}>{{ name }}</a>
{% endmacro %}
{# render table of contents recursively #}