diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html
index efa4c70..5bcb40e 100644
--- a/layouts/partials/edit_post.html
+++ b/layouts/partials/edit_post.html
@@ -1,3 +1,4 @@
+{{- if not (or .Params.editPost.disable site.Params.editPost.disable) -}}
{{- if or .Params.editPost.URL site.Params.editPost.URL -}}
{{- $fileUrlPath := path.Join .File.Path }}
@@ -6,3 +7,4 @@
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
{{- end }}
+{{- end }}