Simplify logic

`.Param` works well on boolean than strings
This commit is contained in:
Aditya Telange 2023-04-02 00:32:51 +05:30 committed by GitHub
parent a7764d1762
commit c6385ff883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{{- if (and (or (.Params.editPost.URL) (site.Params.editPost.URL)) (and (not .Params.editPost.disable) (not site.Params.editPost.disable))) -}}
{{- 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 -}}