From 256025345dbb50341a3447d5506e8621910b1231 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Fri, 16 Oct 2015 12:01:26 +0800 Subject: [PATCH] feat(grunt): add `mask-icon` support for Safari --- Gruntfile.coffee | 4 ++++ _app/_includes/themes/curtana/includes/top.html | 6 ++++++ _app/favicon.svg | 1 + 3 files changed, 11 insertions(+) create mode 100644 _app/favicon.svg diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 4b30ef4e0..fc3960e1f 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -268,6 +268,10 @@ module.exports = (grunt) -> cacheBust: options: encoding: "utf8" + filters: { + "link[rel*=icon]": -> + @attribs.href + } algorithm: "md5" length: 8 deleteOriginals: true diff --git a/_app/_includes/themes/curtana/includes/top.html b/_app/_includes/themes/curtana/includes/top.html index 54fc0292c..e300e050b 100644 --- a/_app/_includes/themes/curtana/includes/top.html +++ b/_app/_includes/themes/curtana/includes/top.html @@ -11,13 +11,19 @@ + + {% if site.base %} {% endif %} + + + + diff --git a/_app/favicon.svg b/_app/favicon.svg new file mode 100644 index 000000000..9fa422001 --- /dev/null +++ b/_app/favicon.svg @@ -0,0 +1 @@ +logo-black-mask-icon@1x \ No newline at end of file