From 1039e3280e20c7c94f710e5935216e3f2fe5c47e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 23 Dec 2025 17:06:19 +0800 Subject: [PATCH] fix: the missing space before the link target attribute --- layouts/_partials/init/index.html | 2 +- layouts/_partials/plugin/link.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 053fea06..a394dcde 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251223084857-0978234b" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251223090620-8635841c" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/_partials/plugin/link.html b/layouts/_partials/plugin/link.html index 23f15b9a..be849abb 100644 --- a/layouts/_partials/plugin/link.html +++ b/layouts/_partials/plugin/link.html @@ -15,7 +15,7 @@ {{- end -}} - {{- .Destination | safeURL -}} + {{- $u := urls.Parse .Destination -}} + {{- $u.String | safeURL | strings.TrimPrefix (add $u.Scheme "://") -}}