add condition to disable edit post on md file
This commit is contained in:
parent
d3d90be8a4
commit
87ee72b87d
@ -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")) -}}
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user