From 87ee72b87d6461bbe0c5884e2419493a194e068d Mon Sep 17 00:00:00 2001 From: douglastofoli Date: Mon, 23 Jan 2023 19:16:04 -0300 Subject: [PATCH] add condition to disable edit post on md file --- layouts/partials/edit_post.html | 2 ++ 1 file changed, 2 insertions(+) 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 }}