Simplify logic
`.Param` works well on boolean than strings
This commit is contained in:
parent
a7764d1762
commit
c6385ff883
@ -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 }}
|
{{- $fileUrlPath := path.Join .File.Path }}
|
||||||
|
|
||||||
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
|
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user