Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>2021-08-05 00:38:33 +0300
committerGuillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>2021-08-05 00:38:33 +0300
commitb7e0cabee56afe2bb258e54b613d17b12a990557 (patch)
tree6f0509dd9e021189d4dd2136042b712f05f004e5
parent4b7d1358342159fbdb003c5ef445c22e6126d20e (diff)
Highlight menu..
-rw-r--r--layouts/partials/nav.html2
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 }}