I am using Hugo to generate a static site. Where should I put my favicon.ico
file?
Static files (like logo image or favicon) goes to the "static" folder If you are using:
Both will be accessible with path like: /*
Example : "/static/ico/myico.ico" and "/themes/themeName/static/ico/myico.ico" will be bot accessible by "/ico/myico.ico"
Putting your favicons in static folder is right. It will be published to public folder once the page is built.
However, using absolute CDN (e.g.: Dropbox) services could be better for page performance.
Put the favicon inside of the static directory. The static directory sits in the root of your hugo site. When you generate your site, the favicon will be copied into public
, the root of the generated site.