diff options
author | Jerry Kiely <jerry@cowboysmall.com> | 2019-11-26 04:59:31 +0300 |
---|---|---|
committer | Jerry Kiely <jerry@cowboysmall.com> | 2019-11-26 04:59:31 +0300 |
commit | af218174c7b30bb64ffe13b6f0098d0f07ffcbb4 (patch) | |
tree | 626fb23cff3b7e74845c3e092db8655a644f1dd1 | |
parent | 37c594e4c644a4ca78a351fbcf26d8725082cd89 (diff) |
changed how fontawesome icons are configured
-rw-r--r-- | exampleSite/config.toml | 18 | ||||
-rw-r--r-- | layouts/partials/contact.html | 2 | ||||
-rw-r--r-- | layouts/partials/social.html | 2 |
3 files changed, 8 insertions, 14 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 60a38b4..fc9a4ed 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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" diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html index dfe03f9..d6bd9ad 100644 --- a/layouts/partials/contact.html +++ b/layouts/partials/contact.html @@ -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> diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 225df4c..ff7f467 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -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> |