Skip to content

Commit

Permalink
feat(grunt): add mask-icon support for Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Oct 16, 2015
1 parent 86decb2 commit 2560253
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ module.exports = (grunt) ->
cacheBust:
options:
encoding: "utf8"
filters: {
"link[rel*=icon]": ->
@attribs.href
}
algorithm: "md5"
length: 8
deleteOriginals: true
Expand Down
6 changes: 6 additions & 0 deletions _app/_includes/themes/curtana/includes/top.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@
<!-- Define a description for better SEO result -->
<meta name="description" content="{{ amsf_site_desc | strip }}">

<!-- Feed URL -->
<link rel="alternate" href="{{ amsf_feed_url }}" type="application/atom+xml">

<!-- Site icons -->
{% if site.base %}
<link rel="icon" href="{{ '/favicon.ico' | prepend: site.base }}">
<link rel="apple-touch-icon" href="{{ '/apple-touch-icon.png' | prepend: site.base }}">
{% endif %}

<!-- Pinned icon for Safari -->
<link rel="mask-icon" href="{{ '/favicon.svg' | prepend: site.base }}" color="#ff00b4">

<!-- Main CSS -->
<link rel="stylesheet" href="{{ '/css/app.css?assets-inline' | prepend: amsf_theme_assets }}">

<!-- Canonical links, avoid duplicate content problems -->
Expand Down
1 change: 1 addition & 0 deletions _app/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2560253

Please sign in to comment.