Skip to content

Commit f2156d1

Browse files
authored
Switch favicon to emoji (alshedivat#217)
1 parent 83daa02 commit f2156d1

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ footer_text: >
1414
Hosted by <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>.
1515
Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>.
1616
17+
icon: 🔥 # the emoji used as the favicon
1718
url: # the base hostname & protocol for your site
1819
baseurl: /al-folio # the subpath of your site, e.g. /blog/
1920
last_updated: false # set to true if you want to display last updated in the footer

_includes/head.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
<link rel="stylesheet" href="https://gitcdn.link/repo/jwarby/jekyll-pygments-themes/master/{{ site.highlight_theme }}.css" />
2929

3030
<!-- Styles -->
31-
<link rel="shortcut icon" href="{{ '/assets/img/favicon.ico' | relative_url }}">
31+
{% if site.icon != empty %}
32+
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ site.icon }}</text></svg>">
33+
{% endif %}
3234
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
3335

3436
<link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}">

assets/img/favicon.ico

-5.56 KB
Binary file not shown.

0 commit comments

Comments
 (0)