diff options
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index edf7f4e..859c917 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,16 +1,18 @@ <footer> <div class="footer-content"> -<div class="contact-info"> - {{with .Site.Params.mail}} - <div class="footer-mail"> - <i class="far fa-envelope"></i> <a href="mailto:{{.}}">{{.}}</a> </div> - {{end}} - {{with .Site.Params.phone}} - <div class="footer-phone"> - <i class="fas fa-phone"></i> {{.}} - </div> - {{end}} -</div> +{{if (or (isset .Site.Params "mail") (isset .Site.Params "phone") ) }} + <div class="contact-info"> + {{with .Site.Params.mail}} + <div class="footer-mail"> + <i class="far fa-envelope"></i> <a href="mailto:{{.}}">{{.}}</a> </div> + {{end}} + {{with .Site.Params.phone}} + <div class="footer-phone"> + <i class="fas fa-phone"></i> {{.}} + </div> + {{end}} + </div> +{{end}} {{with .Site.Copyright}} <p class="copyright meta">{{.}}</p> {{end}} |