Skip to content

Commit

Permalink
Remove the labels Contact Info, Tel and Email if the variables are no…
Browse files Browse the repository at this point in the history
…t set
  • Loading branch information
roscooking committed Aug 29, 2020
1 parent 652a8ca commit 049b82f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ <h6>Address</h6>
</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>
Expand Down

0 comments on commit 049b82f

Please sign in to comment.