Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
add skype to contact options
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkvist committed Jan 20, 2019
1 parent 5968b75 commit de8cdf2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ themesDir = "../.." # Not necessary on production sites
[params.contact] # Contact info
email = "example@gmail.com"
phone = "xxx xxx xxx"
skype = ""
address = "419 Creek St. Revere, MA 02151"

[params.social] # Social networks
Expand Down
25 changes: 17 additions & 8 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,37 @@
{{ end }}

<address class="footer__contact">
{{ if .Site.Params.contact.email }}
{{ if $.Site.Params.contact.email }}
<p class="footer__contact__item">
<span><i class="far fa-envelope"></i></span>
<a href="mailto:{{ .Site.Params.contact.email}}" class="footer__contact__link" alt="Email">
{{ .Site.Params.contact.email }}
<a href="mailto:{{ $.Site.Params.contact.email}}" class="footer__contact__link" alt="Email">
{{ $.Site.Params.contact.email }}
</a>
</p>
{{ end }}

{{ if .Site.Params.contact.phone }}
{{ if $.Site.Params.contact.phone }}
<p class="footer__contact__item">
<span><i class="fas fa-phone"></i></span>
<a href="tel:{{ .Site.Params.contact.phone }}" class="footer__contact__link" alt="Phone">
{{ .Site.Params.contact.phone}}
<a href="tel:{{ $.Site.Params.contact.phone }}" class="footer__contact__link" alt="Phone">
{{ $.Site.Params.contact.phone }}
</a>
</p>
{{ end }}

{{ if .Site.Params.contact.address }}
{{ if $.Site.Params.contact.skype }}
<p class="footer__contact__item">
<span><i class="fab fa-skype"></i></span>
<a href="skype:{{ $.Site.Params.contact.skype }}" class="footer__contact__link" alt="Skype">
{{ $.Site.Params.contact.skype }}
</a>
</p>
{{ end }}

{{ if $.Site.Params.contact.address }}
<p class="footer__contact__item">
<span><i class="fas fa-map-marker-alt"></i></span>
{{ .Site.Params.contact.address }}
{{ $.Site.Params.contact.address }}
</p>
{{ end }}
</address>
Expand Down

0 comments on commit de8cdf2

Please sign in to comment.