Hugo: favicon.ico

Created on 1 Dec 2013  Â·  4Comments  Â·  Source: gohugoio/hugo

favicon.ico does not get copied over from the static folder, and when placed in to the root content folder it becomes an html file.

Bug

Most helpful comment

Why did I think of that logic?

Anyhow, this whole blog thing has been bothering me for a log time.
I tried many things, from Wordpress all the way to my own script. and ended up spreading my stuff all over the place.
And finally there is is Hugo, and I am a happy camper.

Thank you

All 4 comments

Can you provide more details?
I'm successfully placing it in my static folder and it ends up in the desired location.

favicon.ico is usually placed in the root folder, that is where browsers look for it.
If you place it in a sub folder then you have to also add a meta tag, otherwise the browser wont find it.
But meta tags are not supported by IE

When I added to the root folder I get an html file in the root filder
Like this : favicon.ico

<link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon"> 
<link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/x-icon"> 
<link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/vnd.microsoft.icon"><!--The 2010 IANA standard but not supported in IE-->

Put it in the root static folder. That will be copied to where you want.

Steve Francia
spf13.com
@spf13

On Dec 4, 2013, at 9:57 AM, Dennis T Kaplan [email protected] wrote:

favicon.ico is usually placed in the root folder, that is where browsers look for it.
If you place it in a sub folder then you have to also add a meta tag, otherwise the browser wont find it.
But meta tags are not supported by IE

When I added to the root folder I get an html file in the root filder

Like this : favicon.ico




—
Reply to this email directly or view it on GitHub.

Why did I think of that logic?

Anyhow, this whole blog thing has been bothering me for a log time.
I tried many things, from Wordpress all the way to my own script. and ended up spreading my stuff all over the place.
And finally there is is Hugo, and I am a happy camper.

Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

digitalcraftsman picture digitalcraftsman  Â·  3Comments

carandraug picture carandraug  Â·  3Comments

VoidingWarranties picture VoidingWarranties  Â·  3Comments

tjamet picture tjamet  Â·  3Comments

nikolas picture nikolas  Â·  3Comments