Once you have generated the theme, then naviagate to the root directory, you will find an index.html file in your root directory.
after that i believe it should be very straight forward, just add a simple link tag like you would add in your normal static html website.
But just be sure not to put a slash in the beginning when defining the href attribute.
so for example
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
this assumes you are placing the .ico file in the root directory, if not then,
<link rel="shortcut icon" type="image/x-icon" href="whatever_folder_name/favicon.ico">
hope this helps you :)
P.S: for assurance purposes i did google what your query was exactly, linking the source from where i got the exact details: The Link
You can just drag and drop the favicon.ico file into your repository and it'll work, might need to give it a few minutes to update :)
I was not able to make this work with the Minimal theme - I tried everything suggested here! I have my favicon saved in my repo as both a .ico and .png file. I also tried adding this code to the top of my index.md file:
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
(It works fine when I create an index.html file, but of course that doesn't work with the theme.)
I also tried adding this to my _config.yml file:
Can anyone help me figure out what I'm doing wrong?
EDIT: I realized today that this is a Mac issue (Chrome and Safari). On my work PC, the favicon shows up as it should.