From 38e137066a196497e6baa2362cca7c8272ce6edc Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 4 Nov 2023 10:26:36 +0530 Subject: [PATCH] simplify condition --- layouts/partials/share_icons.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index d1e8dd8..fd59983 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -14,7 +14,7 @@ {{- with $ShareButtons }}{{ $custom = true }}{{ end }}
- {{- if (cond ($custom) (in $ShareButtons "x") (true)) | or (cond ($custom) (in $ShareButtons "twitter") (true)) }} + {{- if (or (cond ($custom) (in $ShareButtons "x") (true)) (cond ($custom) (in $ShareButtons "twitter") (true))) }} @@ -68,4 +68,4 @@ {{- end }} -
\ No newline at end of file +