Skip to content

Commit

Permalink
Remove Address label from footer if variable not set
Browse files Browse the repository at this point in the history
  • Loading branch information
roscooking committed Aug 30, 2020
1 parent 049b82f commit f04a54b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
<a href="{{.Site.BaseURL}}"><img src="{{.Site.Params.logo | absURL }}" alt="{{.Site.Title}}" class="img-fluid"></a>
</div>
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
{{ if .Site.Params.address }}
<h6>Address</h6>
<ul class="list-unstyled">
<li class="font-secondary text-dark">{{.Site.Params.address | markdownify }}</li>
</ul>
{{ end }}
</div>
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
{{ if or .Site.Params.mobile .Site.Params.email }}
Expand Down

0 comments on commit f04a54b

Please sign in to comment.