The favicon is not showing up in the Hugo project. The configuration in hugo.toml seems correct, but the favicon is still not visible in the browser tab.
Any help is appreciated. Thanks.
The favicon is not showing up in the Hugo project. The configuration in hugo.toml seems correct, but the favicon is still not visible in the browser tab.
Any help is appreciated. Thanks.
Link to your project repository?
don’t use single quotes around the url in markdown:
[project repo](https://github.com/FacuBozzi/hugo-facundobozzi)
I would say the favicon is shown Maybe just browser refresh issue - force refresh or restart the browser
my bad. Here it is
weird, i did that and it’s not showing on my local dev environment nor in the production url for me. But i guess that if it shows you the favicon, then it’s working.
Strange
Your production site is build using hugo server
Thats why your favicon is not displayed. The url is a development one pointing to localhost.
You have to build it using only hugo
.
Older hugo versions have problems with a basURL without trailing / just add that it does no harm.
Local develotment env:
Mmh. You do that i hope
If not … how are you doing locally?
I’m using Vercel to deploy this site. I used ‘yum install -y golang’ as the install command on Vercel and left the build command untouched. Vercel successfully deploys the Hugo site. Maybe I should override the build command on Vercel to ''hugo" ?
The build command should be something like hugo --minify --gc
.
Adding this to Vercel solved it. Thank you and thanks @irkode
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.