Skip to content

Commit 19bcbbf

Browse files
rohandebsarkarpecey
authored andcommitted
Update favicon emoji length limit (alshedivat#1099)
Since, a image file will always contain a dot and a three letter extension at least (ex: `.jpg`, `.png`, `.jpeg`, etc). Therefore we can safely set the limit up to 4. fixes alshedivat#1096
1 parent 435a067 commit 19bcbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/{{ site.highlight_theme_light | append: '.css' }}" media="" id="highlight_theme_light" />
2323

2424
<!-- Styles -->
25-
{% if site.icon.size < 3 %}
25+
{% if site.icon.size <= 4 %}
2626
<link rel="shortcut 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>">
2727
{% elsif site.icon != blank %}
2828
<link rel="shortcut icon" href="{{ site.icon | prepend: '/assets/img/' | relative_url}}"/>

0 commit comments

Comments
 (0)