McShelby / hugo-theme-relearn

A theme for Hugo designed for documentation
https://mcshelby.github.io/hugo-theme-relearn/
MIT License
379 stars 178 forks source link

font-awesome: some icons not rendering #842

Closed eric-sclafani closed 4 months ago

eric-sclafani commented 4 months ago

Hello,

I love this theme quite a lot. One issue I'm having is some font-awesome icons refuse to render in markdown files. I tried making shortcodes for them, but no dice. I have the correct config in my hugo.toml:

[markup.goldmark.renderer]
    unsafe= true

But icons, such as:

<i class="fa-solid fa-pen-nib"></i>
<i class="fa-brands fa-python"></i>

do not render.

Kindly let me know if you need more information. Thanks for your time.

McShelby commented 4 months ago

Both work for me within the exampleSite of the latest version of the theme.

Did you change anything else in your installation? Fonts? CSS?

McShelby commented 4 months ago

From what I see, you are using Font Awesome 5. This has different syntax.

<i class="fas fa-pen-nib"></i>
<i class="fab fa-python"></i>

The official docs already represent Font Awesome 6 which is coming with the next release to the theme.

eric-sclafani commented 4 months ago

Ah, I see now. Thanks and have a good day.