diff options
author | Ros Cooking <roscooking2020@gmail.com> | 2020-08-30 02:53:56 +0300 |
---|---|---|
committer | Ros Cooking <roscooking2020@gmail.com> | 2020-08-30 02:53:56 +0300 |
commit | 049b82f4eb58576a5172cb61a3a9fc70e04fe3dd (patch) | |
tree | 28b926f82a94e50190823f164363bd9e01df3788 | |
parent | 652a8ca0da925a5ffac6a29c0b190de613d61656 (diff) |
Remove the labels Contact Info, Tel and Email if the variables are not set
-rw-r--r-- | layouts/partials/footer.html | 6 |
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> |