diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html index efa4c7003d..4f2c4de580 100644 --- a/layouts/partials/edit_post.html +++ b/layouts/partials/edit_post.html @@ -1,4 +1,4 @@ -{{- if or .Params.editPost.URL site.Params.editPost.URL -}} +{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}} {{- $fileUrlPath := path.Join .File.Path }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}