calintat / minimal

Personal blog theme powered by Hugo
https://themes.gohugo.io/minimal/
MIT License
404 stars 221 forks source link

researchgate icon is not working #78

Open dominicroye opened 6 years ago

dominicroye commented 6 years ago

I'm trying to add a social icon, but it is not showing up.

https://fontawesome.com/icons/researchgate?style=brands

[[menu.icon]] url = "https://www.researchgate.net/profile/user" name = "researchgate" weight = 3

What is wrong?

dschense commented 5 years ago

I changed some Lines and fixed this Problem for me:

in

themes/minimal/layouts/partials/css.html

change

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

to

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

in

themes/minimal/layouts/partials/css.html

change

<li class="navbar-icon"><a href="{{ .URL }}"><i class="fa fa-{{ .Name }}"></i></a></li>

to

<li class="navbar-icon"><a href="{{ .URL }}"><i class="{{ .Name }}"></i></a></li>

and in your root path change the config.toml for every icon entry like this:

[[menu.icon]]
    url = "https://exampleurl"
    Identifier = "fab fa-researchgate"
    weight = 1

fab fa-researchgate here you must take the full name of the icon

take from here: https://fontawesome.com/icons?d=gallery

there are many fas and fab icons.. hope this helps some other people ;)

Pobega commented 5 years ago

I have the same problem and I forked the repo and made the same changes, but still can't get the itch-io icon to work. See <link-redacted> (it's the last icon on the right, it's invisible)

Edit: I upgraded fontawesome and it now works.