diff --git a/data/assets.toml b/data/assets.toml index d6cbe6ef..13336444 100644 --- a/data/assets.toml +++ b/data/assets.toml @@ -67,9 +67,9 @@ sri = "sha512-6MXa8B6uaO18Hid6blRMetEIoPqHf7Ux1tnyIQdpt9qI5OACx7C+O3IVTr98vwGnlcg0LOLa02i9Y1HpVhlfiw==" url = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/%s/css/bootstrap.min.css" [css.fontAwesome] - version = "4.7.0" - sri = "sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==" - url = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/%s/css/font-awesome.min.css" + version = "5.3.1" + sri = "sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" + url = "https://use.fontawesome.com/releases/v%s/css/all.css" [css.academicons] version = "1.8.6" sri = "sha256-uFVgMKfistnJAfoCUQigIl+JfUaP47GrRKjf6CTPVmw=" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e9baa7b2..33c6e645 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -208,30 +208,30 @@ enableGitInfo = false # Social/Academic Networking # - # Icon pack "fa" includes the following social network icons: + # Icon pack "fab" includes the following social network icons: # # twitter, weibo, linkedin, github, facebook, pinterest, google-plus, # youtube, instagram, soundcloud # - # For email icon, use "fa" icon pack, "envelope" icon, and + # For email icon, use "fas" icon pack, "envelope" icon, and # "mailto:your@email.com" as the link. # - # Full list: https://fortawesome.github.io/Font-Awesome/icons/ + # Full list: https://fontawesome.com/icons # - # Icon pack "ai" includes the following academic network icons: + # Icon pack "ai" includes the following academic icons: # - # google-scholar, arxiv, orcid, researchgate, mendeley + # cv, google-scholar, arxiv, orcid, researchgate, mendeley # # Full list: https://jpswalsh.github.io/academicons/ [[params.social]] icon = "envelope" - icon_pack = "fa" + icon_pack = "fas" link = "mailto:test@example.org" [[params.social]] icon = "twitter" - icon_pack = "fa" + icon_pack = "fab" link = "//twitter.com/GeorgeCushen" [[params.social]] @@ -241,7 +241,7 @@ enableGitInfo = false [[params.social]] icon = "github" - icon_pack = "fa" + icon_pack = "fab" link = "//github.com/gcushen" # Link to a PDF of your resume/CV from the About widget. diff --git a/exampleSite/content/home/hero.md b/exampleSite/content/home/hero.md index c11354b7..97aa62f4 100644 --- a/exampleSite/content/home/hero.md +++ b/exampleSite/content/home/hero.md @@ -21,7 +21,7 @@ weight = 3 # Deactivate by commenting out parameters, prefixing lines with `#`. [cta] url = "./post/getting-started/" - label = ' Install Now' + label = ' Install Now' +++ The highly flexible website framework for Hugo with an extensible plugin mechanism. Create a beautifully simple site in under 10 minutes :rocket: diff --git a/layouts/partials/article_metadata.html b/layouts/partials/article_metadata.html index afb08ead..30eb5f64 100644 --- a/layouts/partials/article_metadata.html +++ b/layouts/partials/article_metadata.html @@ -50,7 +50,7 @@ {{ if gt $categoriesLen 0 }} - + {{ range $k, $v := $.Params.categories }} {{ . }} {{- if lt $k (sub $categoriesLen 1) -}}, {{ end }} diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index d9ec0472..3c3b85b3 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -252,8 +252,9 @@ small, } #search-box::before { + font-family: 'Font Awesome 5 Free'; + font-weight: 900; content: "\f002"; - font-family: FontAwesome; font-size: 1rem; opacity: 0.25; line-height: 1rem; @@ -612,7 +613,7 @@ ul.share li:last-of-type { margin-right: 0; } -ul.share li .fa { +ul.share li i { display: block; width: 30px; height: 30px; @@ -631,7 +632,7 @@ ul.share li a { margin: 0; } -ul.share li:hover .fa { +ul.share li:hover i { transform: scale(1.4) } @@ -974,7 +975,8 @@ article .article-metadata { transform: translate(0, -50%); opacity: 0; transition: all 0.2s ease-out; - font-family: 'FontAwesome'; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; content: '\f0c1'; text-align: center; font-size: 3rem; @@ -1488,15 +1490,18 @@ div.alert p:first-child::before { position: absolute; top: -0.5rem; left: -2rem; - font-family: 'FontAwesome'; font-size: 1.5rem; color: #fff; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; content: '\f05a'; width: 1.5rem; text-align: center; } div.alert-warning p:first-child::before { + font-family: 'Font Awesome 5 Free'; + font-weight: 900; content: '\f071'; } diff --git a/layouts/partials/footer_container.html b/layouts/partials/footer_container.html index 789de5bc..9b374681 100644 --- a/layouts/partials/footer_container.html +++ b/layouts/partials/footer_container.html @@ -18,7 +18,7 @@ @@ -40,10 +40,10 @@ diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index f344e68e..1ed7f588 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -51,7 +51,7 @@ {{ else }} - + {{/* Set target for link. */}} {{ $.Scratch.Set "target" "" }} {{ if gt (len .URL) 4 }} @@ -80,7 +80,7 @@ {{ end }}