diff options
author | Jimmy Cai <github@jimmycai.com> | 2022-10-29 18:28:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 18:28:47 +0300 |
commit | 196116f20d655e4e3f9b4cb2c78edbefc898b7f5 (patch) | |
tree | 9d5daf39ea1520710bc1bdbafe41ad575394b2fb | |
parent | b03390d237427a2b9cfee55949cb1da62f1a6856 (diff) |
-rw-r--r-- | layouts/partials/sidebar/left.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index f94e50a..32e5a12 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -61,9 +61,8 @@ {{ $currentPage := . }} {{ range .Site.Menus.main }} {{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }} - <li {{ if $active }} class='current' {{ end }}> - <a href='{{ .URL | relLangURL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}> + <a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}> {{ $icon := default .Pre .Params.Icon }} {{ if .Pre }} {{ warnf "Menu item [%s] is using [pre] field to set icon, please use [params.icon] instead.\nMore information: https://docs.stack.jimmycai.com/configuration/custom-menu.html" .URL }} |