diff options
author | sarathsp06 <sarath.sp06@gmail.com> | 2019-05-08 17:55:23 +0300 |
---|---|---|
committer | sarathsp06 <sarath.sp06@gmail.com> | 2019-05-08 17:56:33 +0300 |
commit | ccfc0e545892d6d98e4cab4b35a75be4a938c2aa (patch) | |
tree | f8d9e2ce11d2c3f4238e2b5e39a34061c35d8ded /layouts/_default/single.html | |
parent | 2cf8a469bd64ce035aa2a5fea467e4f8b8e52a0d (diff) |
template: Fix template to not show `share` when the list is empty
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files 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 @@ </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"> |