From 4ea18168e3ff748076b2c38cab34f83b187a8cb5 Mon Sep 17 00:00:00 2001 From: Xin Date: Fri, 10 Nov 2023 17:03:08 -0500 Subject: [PATCH] fix: correctly set editURL in front-matter (#195) --- layouts/partials/toc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 6d1f34d..21d77a7 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -27,7 +27,7 @@ {{- if site.Params.editURL.enable -}} {{- $editURL := site.Params.editURL.base | default "" -}} {{- with .File -}}{{ $editURL = urls.JoinPath $editURL (replace .Path "\\" "/") }}{{- end -}} - {{- with .Params.editURL -}}{{ $editURL = .Params.editURL }}{{- end -}} + {{- with .Params.editURL -}}{{ $editURL = . }}{{- end -}} {{ $editThisPage }} {{- end -}} {{/* Scroll To Top */}}