We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 873899e + 5c40910 commit aa3f0ccCopy full SHA for aa3f0cc
1 file changed
layout/partial/nav.jade
@@ -3,5 +3,6 @@ ul.nav.nav-list
3
li.nav-list-item
4
- var re = /^(http|https):\/\/*/gi;
5
- var tar = re.test(value) ? "_blank" : "_self"
6
- a.nav-list-link(class={active: is_home() && value === "/"} href=value target=tar)
7
- != key.toUpperCase()
+ - var act = !re.test(value) && "/"+page.current_url === value
+ a.nav-list-link(class={active: act} href=value target=tar)
8
+ != key.toUpperCase()
0 commit comments