Where do I put my favicon with Hugo

风格不统一 提交于 2020-01-01 03:51:11

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!