From 88b0f1b2abfaa4333b0d07ff3710371d43e04a68 Mon Sep 17 00:00:00 2001 From: Jinuk Im Date: Thu, 19 Oct 2023 06:33:36 +0900 Subject: [PATCH] fix: broken "edit this page" link in windows (#143) --- 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 f795567..1ba9eee 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -26,7 +26,7 @@
{{- if site.Params.editURL.enable -}} {{- $editURL := site.Params.editURL.base | default "" -}} - {{- with .File -}}{{ $editURL = urls.JoinPath $editURL .Path }}{{- end -}} + {{- with .File -}}{{ $editURL = urls.JoinPath $editURL (replace .Path "\\" "/") }}{{- end -}} {{- with .Params.editURL -}}{{ $editURL = .Params.editURL }}{{- end -}} {{ $editThisPage }} {{- end -}}