Favicon with GitHub Pages

后端 未结 3 1196
天命终不由人
天命终不由人 2021-02-02 08:58

I\'m hosting a few sites with GitHub Pages (User and Project Pages), but they are not displaying their favicons (in the browser).



        
3条回答
  •  盖世英雄少女心
    2021-02-02 09:22

    It also works with favicon.png

      
        ...
        
      
    

    The only problem is the slash / in "/favicon.png"

    However this does not work for sub-pages!

    The link should look like this - so you have the favicon on every page:

    
    

    The resolved URL looks like: https://pme123.github.io/scala-adapters/assets/images/favicon.png

    This expects the favicon.png in assets/images folder of your Jekyll project.

提交回复
热议问题