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

github.com/themefisher/parsa-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRos Cooking <roscooking2020@gmail.com>2020-08-30 02:53:56 +0300
committerRos Cooking <roscooking2020@gmail.com>2020-08-30 02:53:56 +0300
commit049b82f4eb58576a5172cb61a3a9fc70e04fe3dd (patch)
tree28b926f82a94e50190823f164363bd9e01df3788
parent652a8ca0da925a5ffac6a29c0b190de613d61656 (diff)
Remove the labels Contact Info, Tel and Email if the variables are not set
-rw-r--r--layouts/partials/footer.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 072c077..e406461 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -12,11 +12,17 @@
</ul>
</div>
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
+ {{ if or .Site.Params.mobile .Site.Params.email }}
<h6>Contact Info</h6>
<ul class="list-unstyled">
+ {{ if .Site.Params.mobile }}
<li class="font-secondary text-dark">Tel : {{ .Site.Params.mobile | markdownify }}</li>
+ {{ end }}
+ {{ if .Site.Params.email }}
<li class="font-secondary text-dark">Email : {{ .Site.Params.email | markdownify }}</li>
+ {{ end }}
</ul>
+ {{ end }}
</div>
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
<h6>Follow</h6>