Unable to set favicon using Jekyll and github pages

后端 未结 9 1875

I am trying to set a favicon.ico for my github page, but it doesn\'t work. When I serve it locally I see the standard \"empty\" favicon and when I push it I see

9条回答
  •  太阳男子
    2020-12-23 14:07

    I got it to working using:

    
    
    

    Notes on the snippet:

    1. PNG format for the favicon,
    2. a relative URL in the HTML head tag (in minimia this is head.html).
    3. Adding relative_url tells Liquid to prepend the url and baseurl to the given path.

提交回复
热议问题