mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Add condition to disable edit post on single pages (#1143)
editPost: disabled: true --------- Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
This commit is contained in:
parent
5d2c036624
commit
031e2ba57e
@ -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 -}}
|
||||
|
Loading…
Reference in New Issue
Block a user