diff options
author | Robert Austin <rob@jugglerdigital.com> | 2022-03-24 07:48:09 +0300 |
---|---|---|
committer | Robert Austin <rob@jugglerdigital.com> | 2022-03-24 07:48:09 +0300 |
commit | 4220fbaffacbd8cce970e0629f8ff6e36561dc6b (patch) | |
tree | 00ba4ca807b02ee25d4ed102f99613e1f52a4181 | |
parent | 260bb0fd0469c34f31acb82432f85d78addf12e4 (diff) |
-rw-r--r-- | layouts/contact/contact.html | 6 | ||||
-rw-r--r-- | layouts/partials/sub-footer.html | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/contact/contact.html b/layouts/contact/contact.html index 5c60556..028a776 100644 --- a/layouts/contact/contact.html +++ b/layouts/contact/contact.html @@ -17,16 +17,18 @@ <div class="col-12 col-md-8"> {{ .Content }} <ul> - {{ with .Site.Data.contact.phone }} + {{ if .Site.Data.contact.phone }} <li><strong>Phone: </strong>{{ .Site.Data.contact.phone }}</li> {{ end }} + {{ if .Site.Data.contact.email }} <li><strong>Email: </strong><a href="mailto:{{ .Site.Data.contact.email }}"> {{ .Site.Data.contact.email }}</a></li> + {{ end }} {{ if .Site.Data.contact.address }} <li style="white-space: pre-wrap;"><strong>Address: </strong><br>{{ .Site.Data.contact.address }}</li> {{ end }} </ul> - {{ with .Site.Data.contact.hours }} + {{ if .Site.Data.contact.hours }} <h4 class="mt-4">Business Hours</h4> <table class="table table-sm opening-hours-table"> {{ range .Site.Data.contact.hours }} diff --git a/layouts/partials/sub-footer.html b/layouts/partials/sub-footer.html index 0790d15..a8abf79 100644 --- a/layouts/partials/sub-footer.html +++ b/layouts/partials/sub-footer.html @@ -4,11 +4,13 @@ <div class="col-12"> <div class="sub-footer-inner"> <ul> - {{ with .Site.Data.contact.phone }} + {{ if .Site.Data.contact.phone }} <li><strong>Phone: </strong>{{ .Site.Data.contact.phone }}</li> {{ end }} + {{ if .Site.Data.contact.email }} <li><strong>Email: </strong><a href="mailto:{{ .Site.Data.contact.email }}"> {{ .Site.Data.contact.email }}</a></li> + {{ end }} </ul> <ul> <li class="zerostatic"><a href="https://www.zerostatic.io">www.zerostatic.io</a></li> |