Navigation: Highlight current page in the navbar

This commit is contained in:
Pablo Vazquez 2018-09-17 15:02:54 +02:00
parent 601b94e23a
commit 0aeae2cabd

View File

@ -29,8 +29,10 @@ include ../mixins/components
| {% endif %}
| {% for link in navigation_links %}
+nav-secondary-link(href="{{ link['url'] }}")
| {{ link['label'] }}
+nav-secondary-link(
href="{{ link['url'] }}",
class="{% if link['slug'] == title %}active{% endif %}")
span {{ link['label'] }}
| {% endfor %}
| {% if project.nodes_featured %}