lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
656 stars 360 forks source link

Fontawesome: Icon `fa-person-biking` not showing up in social icons #315

Closed McPringle closed 2 years ago

McPringle commented 2 years ago

Describe the bug I'm searching for an icon to represent my Komoot profile and found fa-person-biking suitable, which was introduced with Fontawesome 5.9 (link). If I use this icon as a social icon, it does not show up.

To Reproduce The following snippet works in config.toml:

[[params.socialIcons]]
icon = "fas fa-bicycle"
title = "Komoot"
url = "https://www.komoot.com/user/306059768140"

Using the fa-person-biking icon does not work:

[[params.socialIcons]]
icon = "fas fa-person-biking"
title = "Komoot"
url = "https://www.komoot.com/user/306059768140"

It is not a brand icon, but I tried fab instead of fas and I tried it without anything, just the icon class: The icon does not show up.

Expected behavior I would expect the icon to show up next to the others.

Screenshots image

Desktop (please complete the following information):

Tested with Chrome (Windows, macOS, Linux, ChromeOS), Firefox (Windows, macOS, Linux), Edge (Windows), Safari (macOS).

Smartphone (please complete the following information):

Not tested on smartphones.

Additional context No additional context.

lxndrblz commented 2 years ago

@McPringle Please update your version of the theme. About an hour ago, I have updated the theme to FontAwesome 6, which ships with the desired icon.

image

Please see the wiki for instructions on how to update your theme.

McPringle commented 2 years ago

Thank you very much for updating FA, it works! I don't know why it was a problem before, because as far as I was checking the code, FA 5.15 was used and the icon was introduced in 5.9. But it doesn't matter now, with FA 6 and serving the fonts from the own server this problem is solved for me. :-)