diff --git a/layouts/_partials/edit_post.html b/layouts/_partials/edit_post.html
index d24f5b55..b4bf44f4 100644
--- a/layouts/_partials/edit_post.html
+++ b/layouts/_partials/edit_post.html
@@ -1,10 +1,20 @@
-{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
-{{- $fileUrlPath := path.Join .File.Path }}
+{{- if and (.Param "editPost.URL") (not (.Param "editPost.disabled")) -}}
+ {{- if or (.Param "author") (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }}
+ {{- printf " | " | safeHTML -}}
+ {{- end -}}
-{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
-
-
- {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
-
-
+ {{- $editURL := .Param "editPost.URL" }}
+ {{- $appendFilePath := .Param "editPost.appendFilePath" | default false }}
+ {{- $editText := .Param "editPost.Text" | default (i18n "edit_post" ) -}}
+
+ {{- if $appendFilePath -}}
+ {{- $fileUrlPath := path.Join .File.Path }}
+ {{- $editURL = printf "%s/%s" $editURL $fileUrlPath -}}
+ {{- end -}}
+
+
+
+ {{- $editText -}}
+
+
{{- end }}