From 0aeae2cabd3510d5a012b395955f40f65af756b8 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Mon, 17 Sep 2018 15:02:54 +0200 Subject: [PATCH] Navigation: Highlight current page in the navbar --- src/templates/projects/_macros.pug | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/templates/projects/_macros.pug b/src/templates/projects/_macros.pug index bd879bb1..3223743b 100644 --- a/src/templates/projects/_macros.pug +++ b/src/templates/projects/_macros.pug @@ -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 %}