Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-HTML not showing Font Awesome icons with -Online switch #451

Open
Jay6111 opened this issue Aug 6, 2024 · 0 comments
Open

New-HTML not showing Font Awesome icons with -Online switch #451

Jay6111 opened this issue Aug 6, 2024 · 0 comments

Comments

@Jay6111
Copy link

Jay6111 commented Aug 6, 2024

Using PSWriteHTML version 1.27.0
When using the,
New-HTML -Name "Report" -Online -ShowHTML
I'm adding the
New-HTMLTag -Tag 'i' -Attributes @{ class = "fas fa-globe-americas fa-3x" }
to grab a font awesome icon but the output does not show any icons.

If I review the HTML output I see I am missing the line at the top for,
<link comment="font-awesome" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" as="style" type="text/css" rel="stylesheet

Instead all I am getting is,
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap" as="style" type="text/css" rel="stylesheet preload prefetch"/>
Where the font awesome reference would be.

Not sure what I am doing wrong. I'm not using any Add-HTMLStyle. I am using New-HTMLTabStyle & New-HTMLLogo, but I've tried it without and get the same result.
If I edit the HTML and replace the Google reference link with the font awesome link and save, I can open the HTML and the icons show so I know it's because the reference link is missing but I can't figure out what would be causing it not to load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant