Skip to content

Commit

Permalink
Add condition to disable edit post on single pages (#1143)
Browse files Browse the repository at this point in the history
editPost:
    disabled: true

---------

Co-authored-by: Aditya Telange <[email protected]>
  • Loading branch information
douglastofoli and adityatelange authored Apr 1, 2023
1 parent 5d2c036 commit 031e2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/edit_post.html
Original file line number Diff line number Diff line change
@@ -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 }}&nbsp;|&nbsp;{{- end -}}
Expand Down

0 comments on commit 031e2ba

Please sign in to comment.