How could I put an icon (like from font-awesome) in a page?
Would it be better to use the Unicode glyph and change the font somehow? Or is better to go the “web way” and include the css in every page?
I have a “sources” section in some pages, and I want to be able to put the icon from the source (the pdf icon if its a pdf, the youtube icon if its a video from youtube, etc.)
icon: property currently supports emojis and Unicode glyphs.
If you use a font that doesn’t support the Unicode glyph, it will just show up as an ‘x’. Emojis are supported in default font
To use glyphs, you need to use a font that supports it, like any of the nerd fonts. For example, install the Nerd fonts package for your system then add the following to
--ls-font-family: "FontAwesome", sans-serif;
--ct-code-font-family: "Ubuntu Nerd Font";
in this example, I am using
I knew about the icons, and it was working with Emojis fine. It’s working now with glyphs too, thank you very much!
Btw, my config (which uses the system default font) is:
--ls-font-family: "Symbols Nerd Font", "FontAwesome", sans-serif;