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 -}}