Skip to content

Commit 0cdd295

Browse files
authored
Merge pull request #371 from ashawley/baseurl-favicon
Fix baseurl for Favicon and Apple icons
2 parents 86c8107 + 4695cc6 commit 0cdd295

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

_includes/head.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,21 @@
7777
{% endif %}
7878

7979
<!-- Icons -->
80-
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
81-
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
82-
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
83-
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
84-
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
85-
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
86-
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
87-
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
88-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
89-
<link rel="icon" type="image/png" href="/favicon-192x192.png" sizes="192x192">
90-
<link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
91-
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
92-
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
93-
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
80+
<link rel="apple-touch-icon" sizes="57x57" href="{{ "/apple-touch-icon-57x57.png" | relative_url }}">
81+
<link rel="apple-touch-icon" sizes="114x114" href="{{ "/apple-touch-icon-114x114.png" | relative_url }}">
82+
<link rel="apple-touch-icon" sizes="72x72" href="{{ "/apple-touch-icon-72x72.png" | relative_url }}">
83+
<link rel="apple-touch-icon" sizes="144x144" href="{{ "/apple-touch-icon-144x144.png" | relative_url }}">
84+
<link rel="apple-touch-icon" sizes="60x60" href="{{ "/apple-touch-icon-60x60.png" | relative_url }}">
85+
<link rel="apple-touch-icon" sizes="120x120" href="{{ "/apple-touch-icon-120x120.png" | relative_url }}">
86+
<link rel="apple-touch-icon" sizes="76x76" href="{{ "/apple-touch-icon-76x76.png" | relative_url }}">
87+
<link rel="apple-touch-icon" sizes="152x152" href="{{ "/apple-touch-icon-152x152.png" | relative_url }}">
88+
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon-180x180.png" | relative_url }}">
89+
<link rel="icon" type="image/png" href="{{ "/favicon-192x192.png" | relative_url }}" sizes="192x192">
90+
<link rel="icon" type="image/png" href="{{ "/favicon-160x160.png" | relative_url }}" sizes="160x160">
91+
<link rel="icon" type="image/png" href="{{ "/favicon-96x96.png" | relative_url }}" sizes="96x96">
92+
<link rel="icon" type="image/png" href="{{ "/favicon-16x16.png" | relative_url }}" sizes="16x16">
93+
<link rel="icon" type="image/png" href="{{ "/favicon-32x32.png" | relative_url }}" sizes="32x32">
94+
<link rel="shortcut icon" href="{{ "/favicon.ico" | relative_url }}"
9495

9596
{% if site.google_analytics %}
9697
<script type="text/javascript">

0 commit comments

Comments
 (0)