问题
I am using Hugo to generate a static site. Where should I put my favicon.ico
file?
回答1:
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.
回答2:
Putting your favicons in static folder is right. It will be published to public folder once the page is build.
However, using absolute CDN (e.g: Dropbox) services could be better for page performance.
来源:https://stackoverflow.com/questions/42043648/where-do-i-put-my-favicon-with-hugo