template: Fix template to not show share when the list is empty

This commit is contained in:
sarathsp06 2019-05-08 16:55:23 +02:00
parent 2cf8a469bd
commit ccfc0e5458

View file

@ -63,11 +63,11 @@
</p>
<p class="copyright-item">
{{ if $.Param "socialShare" }}
{{ if and ( $.Param "socialShare" ) (gt (len ($.Param "share")) 0) }}
<span>{{ i18n "Share" }}:</span>
<span>{{ partial "share-links" . }}</span>
{{ end }}
</p>
{{ end }}
{{ with .Site.Params.license }}
<p class="copyright-item">