Where can I place my badge with Hugo

I use Hugo to create a static site. Where should I put my favicon.ico file?

+12
source share
2 answers

Place the icon in the static directory. The static directory is at the root of your hugo site. When you create your site, the icon will be copied to public , the root of the generated site.

Directory structure

+20
source

Inserting your icons into a static folder is correct. It will be published in the public folder after the page is built.

However, using absolute CDN services (such as Dropbox) may be better for page performance.

+2
source

Source: https://habr.com/ru/post/1275046/


All Articles