Merge pull request #26 from sarathsp06/master

template: Fix template to not show `share` when the list is empty
This commit is contained in:
Giuseppe Pignataro 2019-05-14 09:09:36 +02:00 committed by GitHub
commit 3e2972c318
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>
</p>
{{ end }}
</p>
{{ with .Site.Params.license }}
<p class="copyright-item">