PSWriteHTML icon indicating copy to clipboard operation
PSWriteHTML copied to clipboard

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

Open Jay6111 opened this issue 1 year ago • 0 comments

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.

Jay6111 avatar Aug 06 '24 15:08 Jay6111