hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.05k stars 607 forks source link

Using FontAwesome icon for project card #910

Closed niltied closed 6 months ago

niltied commented 8 months ago

Hi @hossainemruz,

Context

When I create a new project card in /data/en/sections/projects.yaml, for example :

projects:
- name: Gaming
  role: Player
  logo: "fa-solid fa-gamepad"
  timeline: "january 2000 - Now"
  summary: "My nolife hobby"

I would like to illustrate my card with a Fontawesome logo, but it seems that it doesn't work for me or I haven't understood how it works.

Questions

Toha support FontAwesome icon to illustrate the projects card ?

Another question : What is the ideal pixel size of an icon (jpg or png) for project cards ?

Thank,

BernatBC commented 8 months ago

As far as I know, the project logo doesn't have support for font awesome icons. However, you could download the svg from the font awesome website and link the image in the logo field.

niltied commented 6 months ago

Hello,

Ho you did it ? So great ! Thank U @BernatBC. I test this as soon as possible.

See you later,