diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c83e4ef..3f5b50c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -64,13 +64,13 @@ DefaultContentLanguage = "en" # Theme i18n support [[menu.main]] identifier = "about-cn" name = "About" - url = "/about/" + url = "about" weight = -90 pre = "user" [[menu.main]] identifier = "archives" name = "Archives" - url = "/archives/" + url = "archives" weight = -70 pre = "archives" diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index 6ee5164..1a0e2f5 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -31,7 +31,7 @@ {{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}