diff options
author | Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk> | 2021-08-05 00:38:33 +0300 |
---|---|---|
committer | Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk> | 2021-08-05 00:38:33 +0300 |
commit | b7e0cabee56afe2bb258e54b613d17b12a990557 (patch) | |
tree | 6f0509dd9e021189d4dd2136042b712f05f004e5 | |
parent | 4b7d1358342159fbdb003c5ef445c22e6126d20e (diff) |
Highlight menu..
-rw-r--r-- | layouts/partials/nav.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 325f72b..f1f2b89 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -111,7 +111,7 @@ {{ end }} </li> {{ else }} - <li class="dropdown"> + <li class="dropdown {{ if eq $current.RelPermalink .URL | or (eq $current.Type $topLevel) | or (and (eq (default (trim .URL "/") .Identifier) "blog") (in (slice "taxonomy" "taxonomyTerm") $current.Kind)) }} active{{ end }}"> <a href="{{ .URL }}">{{ .Name }}</a> </li> {{ end }} |