improve condition to an if inline
This commit is contained in:
parent
87ee72b87d
commit
d88b401b39
@ -1,5 +1,4 @@
|
||||
{{- if not (or .Params.editPost.disable site.Params.editPost.disable) -}}
|
||||
{{- if or .Params.editPost.URL site.Params.editPost.URL -}}
|
||||
{{- if (and (or (.Params.editPost.URL) (site.Params.editPost.URL)) (and (not .Params.editPost.disable) (not site.Params.editPost.disable))) -}}
|
||||
{{- $fileUrlPath := path.Join .File.Path }}
|
||||
|
||||
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
|
||||
@ -7,4 +6,3 @@
|
||||
{{- .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