Skip to content

Commit

Permalink
add support for favicon.ico file; related to daattali#1234 and daatta…
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Dec 23, 2023
1 parent 154cd43 commit a77620b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Unreleased version
- BREAKING CHANGE: Allow changing the order of the social network links that appear in the footer (#1152)
- 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)
- Added explicit support for favicons, you only need to add a `favicon.ico` file to the root directory
- The footer of a page always sticks to the bottom, even on short pages (#576)
- Added `author` YAML parameter to allow specifying the author(s) of a post (#1220)
- Fixed bug where hovering over search results showed the text "{desc}" (#1156)
Expand Down
5 changes: 5 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
{% endif %}

{% assign favicon_exists = site.static_files | where: "path", "/favicon.ico" | size %}
{% if favicon_exists == 1 %}
<link rel="icon" href="{{ '/favicon.ico' | relative_url }}" />
{% endif %}

{% if page.head-extra %}
{% for file in page.head-extra %}
{% include {{ file }} %}
Expand Down

0 comments on commit a77620b

Please sign in to comment.