Favicon not displaying #13
-
Hi, I'm trying to add a favicon to my Hugo / Paige site. I've created files using https://favicon.io/ and these look to align with the standard HTML that is emitted but the favicon is not displayed (I've tried different browsers to make sure not cached). From what I can see the HTML is hardcoded in the links.html partial which is part of the theme, is there anyway to customise this HTML in my site (without changing the theme)? Or has anyone else managed to get this to work? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The favicon files are in Paige's static/ directory. They should be able to be overridden by placing your own favicon files with the same paths and names in your site's static/ directory. What are the file paths and names you're using? |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back to me so quickly. I think I've found the issue, I don't have an svg version of my favicon, because favicon.svg exists in Paige's static/ directory it's being deployed and rendered on my page, but I'd like to show the png or ico version of my favicon rather than the theme default. Is there a way to modify the links.hml output to remove the Thanks |
Beta Was this translation helpful? Give feedback.
Thanks for getting back to me so quickly.
I think I've found the issue, I don't have an svg version of my favicon, because favicon.svg exists in Paige's static/ directory it's being deployed and rendered on my page, but I'd like to show the png or ico version of my favicon rather than the theme default.
Is there a way to modify the links.hml output to remove the
<link href="/favicon.svg" rel="icon" type="image/svg+xml">
element without modifying the theme or copying the whole partial and modifying in the site?
Thanks