From 6bbe4c01346f80fc0d557e4e148d215ff9a03fa5 Mon Sep 17 00:00:00 2001 From: genffy Date: Tue, 20 Jun 2023 16:26:00 +0800 Subject: [PATCH] fix: edit_post fileUrlPath with contentDir configed --- layouts/partials/edit_post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html index 4f2c4de5..b2a28575 100644 --- a/layouts/partials/edit_post.html +++ b/layouts/partials/edit_post.html @@ -1,5 +1,5 @@ {{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}} -{{- $fileUrlPath := path.Join .File.Path }} +{{- $fileUrlPath := path.Clean (path.Join (.Param "contentDir") .File.Path) }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}