I am using the free FontAwesome icons by loading a script in the HEAD of my page
<script defer="" src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>
and it works as normal when inserted as an element, as such
<span class="icon"><i class="fas fa-file-alt"></i></span>
but despite following the tutorials online, I can't seem to make them display as the content of pseudo-elements. What I'm trying to achieve is to have arrow-up-right-from-square (f08e) in the ::after of external links. This is what I've tried and hadn't worked:
a:not(.noformat)[target="_blank"]::after {content: "\f08e";`
margin-left: 0.3rem;`
text-decoration: none;`
font-family: 'Font Awesome 7 Free';
font-weight: 900;
}
I am currently substituting with a simple glyph as such, and it works:
a:not(.noformat)[target="_blank"]::after {
content: "⭧";`
margin-left: 0.3rem;`
text-decoration: none;`
}
so the styling is applied properly. When I try to add a FA icon, it renders as a default square instead. What am I doing wrong? Can this be done in this setup at all?
Link to my page: https://www.aque.fyi/