Skip to content

Commit 6e0120c

Browse files
committed
add support for favicon.ico file; related to daattali#1234 and daattali#1249
1 parent 938b912 commit 6e0120c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Unreleased version
22
- BREAKING CHANGE: Allow changing the order of the social network links that appear in the footer (#1152)
33
- BREAKING CHANGE: `google-scholar` social network link no longer requires the prefix `citations?user=`; if you previously set this parameter, it needs to be updated (#1189)
4+
- Added explicit support for favicons, you only need to add a `favicon.ico` file to the root directory
45
- The footer of a page always sticks to the bottom, even on short pages (#576)
56
- Added `author` YAML parameter to allow specifying the author(s) of a post (#1220)
67
- Fixed bug where hovering over search results showed the text "{desc}" (#1156)

_includes/head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@
152152
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
153153
{% endif %}
154154

155+
{% assign favicon_exists = site.static_files | where: "path", "/favicon.ico" | size %}
156+
{% if favicon_exists == 1 %}
157+
<link rel="icon" href="{{ '/favicon.ico' | relative_url }}" />
158+
{% endif %}
159+
155160
{% if page.head-extra %}
156161
{% for file in page.head-extra %}
157162
{% include {{ file }} %}

0 commit comments

Comments
 (0)