Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Fastbyte01/KeepIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarathsp06 <sarath.sp06@gmail.com>2019-05-08 17:55:23 +0300
committersarathsp06 <sarath.sp06@gmail.com>2019-05-08 17:56:33 +0300
commitccfc0e545892d6d98e4cab4b35a75be4a938c2aa (patch)
treef8d9e2ce11d2c3f4238e2b5e39a34061c35d8ded
parent2cf8a469bd64ce035aa2a5fea467e4f8b8e52a0d (diff)
template: Fix template to not show `share` when the list is empty
-rw-r--r--layouts/_default/single.html4
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">