It has been 1486 days since the last update, the content of the article may be outdated.

这是最初的几篇博客,那时候甚至不懂favicon怎么设置,慢慢的,我还没系统学习前端,这些知识就粗粗了解了。

1. In ‘pelicanconf.py’ , set

python
USE_SHORTCUT_ICONS = True    
SITELOGO = 'images/favicon.ico'
FAVICON = 'images/favicon.ico'
SITELOGO_SIZE = 15
```
### 2. Put your `favicon.ico` in path `content/images/`
### 3. In `elegant/templates/_includes/favicon_links.html`

#### replace following :
```html
<link rel="shortcut icon" href="{{ SITEURL }}/theme/images/favicon.ico" type="image/x-icon" type="image/png" />

with

html
<link rel="shortcut icon" href="{{ SITEURL }}/images/favicon.ico" type="image/x-icon" type="image/png" />  

since your favicon will be copied into path output/images/ instead of output/theme/images/

See also the issue #159 of Pelican theme on Github