From acd95ec1680dfc878772b1283c105408f27d91c1 Mon Sep 17 00:00:00 2001 From: SerKo Date: Tue, 12 Apr 2022 21:20:05 +0800 Subject: [PATCH] fix: remove spaces --- layouts/_default/baseof.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c872d9d..636e50d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -20,7 +20,6 @@
{{ $currentPage := . }} {{ $active := "" }} - {{ range .Site.Menus.main }} {{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} {{ $active = "active" }} @@ -34,7 +33,7 @@ transition:150ms;ease-in {{ $active }} " href="{{ .URL }}" title="{{ .Title }}"> - {{ .Name }} + {{- .Name -}} {{ end }}