From ccfc0e545892d6d98e4cab4b35a75be4a938c2aa Mon Sep 17 00:00:00 2001
From: sarathsp06
Date: Wed, 8 May 2019 16:55:23 +0200
Subject: template: Fix template to not show `share` when the list is empty
---
layouts/_default/single.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 50942be..71f52c6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -63,11 +63,11 @@
- {{ if $.Param "socialShare" }}
+ {{ if and ( $.Param "socialShare" ) (gt (len ($.Param "share")) 0) }}
{{ i18n "Share" }}:
{{ partial "share-links" . }}
+ {{ end }}
- {{ end }}
{{ with .Site.Params.license }}
--
cgit v1.2.3