changed how fontawesome icons are configured

This commit is contained in:
Jerry Kiely 2019-11-26 01:59:31 +00:00
parent 37c594e4c6
commit af218174c7
3 changed files with 8 additions and 14 deletions

View file

@ -39,18 +39,15 @@ googleAnalytics = "UA-XXXXXXX-Y"
location = "New York"
[[params.contact.list]]
style = "fas"
icon = "fa-phone-square"
icon = "fas fa-phone-square"
url = "tel:#"
text = "0123 4567 890"
[[params.contact.list]]
style = "fas"
icon = "fa-envelope-square"
icon = "fas fa-envelope-square"
url = "mailto:#"
text = "simon.doe@yourwebsite.com"
[[params.contact.list]]
style = "fas"
icon = "fa-globe"
icon = "fas fa-globe"
url = "#"
text = "www.yourwebsite.com"
@ -294,18 +291,15 @@ googleAnalytics = "UA-XXXXXXX-Y"
enable = true
[[params.social.list]]
style = "fab"
icon = "fa-github-square"
icon = "fab fa-github-square"
url = "//github.com/username"
title = "username"
[[params.social.list]]
style = "fab"
icon = "fa-linkedin"
icon = "fab fa-linkedin"
url = "//linkedin.com/in/username"
title = "username"
[[params.social.list]]
style = "fab"
icon = "fa-twitter-square"
icon = "fab fa-twitter-square"
url = "//twitter.com/username"
title = "@username"

View file

@ -2,7 +2,7 @@
<div class="resume-contact col-12 col-md-6 col-lg-4 col-xl-3">
<ul class="list-unstyled mb-0">
{{ range .Site.Params.contact.list }}
<li class="mb-2"><i class="{{ .style }} {{ .icon }} fa-fw fa-lg mr-2 "></i><a class="resume-link" href="{{ .url | safeURL }}">{{ .text }}</a></li>
<li class="mb-2"><i class="{{ .icon }} fa-fw fa-lg mr-2"></i><a class="resume-link" href="{{ .url | safeURL }}">{{ .text }}</a></li>
{{ end }}
<li class="mb-0"><i class="fas fa-map-marker-alt fa-fw fa-lg mr-2"></i>{{ .Site.Params.contact.location }}</li>
</ul>

View file

@ -5,7 +5,7 @@
{{ range .Site.Params.social.list }}
<li class="list-inline-item mb-lg-0 mr-3">
<a class="resume-link" href="{{ .url }}" target="_blank">
<i class="{{ .style }} {{ .icon }} fa-2x mr-2" data-fa-transform="down-4"></i>
<i class="{{ .icon }} fa-2x mr-2" data-fa-transform="down-4"></i>
<span class="d-none d-lg-inline-block text-muted">{{ .title }}</span>
</a>
</li>