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 <wolf.fox1985@gmail.com>2021-10-13 18:17:49 +0300
committerGitHub <noreply@github.com>2021-10-13 18:17:49 +0300
commitd758da1a294d66511dde33e3fffd659fdc9b5afa (patch)
treeecfe6217a73c8e413836ea4a3069132dee3250a5
parent973e31fe5e8c983e46e247d2eaf450f560dbfbd1 (diff)
Deprecation (#332)
* Fixed deprecation warning. * Fixed deprecation warning.
-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 dd44ae0..3bbabfc 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -36,7 +36,7 @@
{{ $active = "active" }}
{{ end }}
- {{ if and (or (eq $current.URL .URL) (eq "term" $current.Kind)) (in (slice "page" "term") $current.Kind) }}
+ {{ if and (or (eq $current.RelPermalink .URL) (eq "term" $current.Kind)) (in (slice "page" "term") $current.Kind) }}
{{ range (split .URL "/") }}
{{ if eq "blog" . }}
{{ $active = "active" }}