diff options
author | Giuseppe Pignataro <rogepix@gmail.com> | 2019-05-14 10:09:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 10:09:36 +0300 |
commit | 3e2972c318b3c8297a5ac775cb897adefa90b2ee (patch) | |
tree | f8d9e2ce11d2c3f4238e2b5e39a34061c35d8ded | |
parent | 2cf8a469bd64ce035aa2a5fea467e4f8b8e52a0d (diff) | |
parent | ccfc0e545892d6d98e4cab4b35a75be4a938c2aa (diff) |
Merge pull request #26 from sarathsp06/master
template: Fix template to not show `share` when the list is empty
-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"> |