From 196116f20d655e4e3f9b4cb2c78edbefc898b7f5 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 29 Oct 2022 17:28:47 +0200 Subject: fix: incorrect menu URL when baseURL is a subpath (#713) --- layouts/partials/sidebar/left.html | 3 +-- 1 file changed, 1 insertion(+), 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" .)) }} -
  • - + {{ $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 }} -- cgit v1.2.3