Skip to content

Commit cafb109

Browse files
committed
Add favicon support for the Touch Bar on the new MacBook Pro
1 parent 3297ad3 commit cafb109

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ defaults:
185185
# More information » https://mathiasbynens.be/notes/touch-icons
186186
#-------------------------------------------------------------------
187187

188+
mask-icon: "aspectran-logo.svg"
189+
mask-icon-color: "#4B555A"
188190
favicon-32x32: "favicon-32x32.png"
189191
touch-icon-192x192: "touch-icon-192x192.png"
190192
apple-touch-icon-180x180-precomposed: "apple-touch-icon-180x180-precomposed.png"

_includes/favicon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
*
55
{% endcomment %}
66

7-
<link rel="mask-icon" href="{{ site.url }}/assets/img/aspectran-logo.svg" color="#4B555A" />
7+
{% if site.mask-icon %}
8+
<link rel="mask-icon" href="{{ site.url }}/assets/img/{{ site.mask-icon }}" color="{{ site.mask-icon-color }}" />
9+
{% endif %}
10+
811

912
{% if site.favicon-32x32 %}
1013
{% comment %} Regular Old-Skool Favicon: {% endcomment %}

assets/img/aspectran-logo.svg

Lines changed: 13 additions & 9 deletions
Loading

0 commit comments

Comments
 (0)