Note: This was found with assistance from Claude.
The SVG favicon <link> in inst/BS5/templates/head.html wraps the type value in curly/smart quotes (”…”, U+201D) instead of straight quotes:
See
|
<link rel="icon" type=”image/svg+xml” href="{{#site}}{{root}}{{/site}}favicon.svg"> |
Because type="image/svg+xml" is malformed, browsers can't parse the link and ignore favicon.svg, falling back to the raster .ico/PNG. Sites whose raster favicon is lower quality then get a pixelated tab icon even though a crisp favicon.svg exists and is being copied to the site root.
Fix by replacing smart quote with straight quote
Potentially introduced in #2804 (smart-quote autocorrect when pasting the favicon snippet).
Note: This was found with assistance from Claude.
The SVG favicon
<link>ininst/BS5/templates/head.htmlwraps thetypevalue in curly/smart quotes (”…”, U+201D) instead of straight quotes:See
pkgdown/inst/BS5/templates/head.html
Line 9 in a6abe43
Because type="image/svg+xml" is malformed, browsers can't parse the link and ignore favicon.svg, falling back to the raster .ico/PNG. Sites whose raster favicon is lower quality then get a pixelated tab icon even though a crisp favicon.svg exists and is being copied to the site root.
Fix by replacing smart quote with straight quote
Potentially introduced in #2804 (smart-quote autocorrect when pasting the favicon snippet).