diff options
author | silverwind <me@silverwind.io> | 2020-02-27 04:40:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 11:40:14 +0800 |
commit | 9a476113f01602f8418f8f66e7eceac27fd480c5 (patch) | |
tree | 22189c770fda55678d24d2e7e8118db973bf79f7 | |
parent | 4a2d23981d39be8559757b54f0201adcba5496c3 (diff) | |
download | gitea-9a476113f01602f8418f8f66e7eceac27fd480c5.tar.gz gitea-9a476113f01602f8418f8f66e7eceac27fd480c5.zip |
Add fluid-icon (#10491)
This provides Firefox (and possible other browsers) with a
high-resolution rich icon, in place of the previously removed
apple-touch-icon without having to use that one as it lacks an
alpha channel. This is the same method GH uses.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/UI_considerations#Rich_icons
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
-rw-r--r-- | templates/base/head.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 491776958f..7e3b718dcb 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -99,6 +99,7 @@ </script> <link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png"> <link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926"> + <link rel="fluid-icon" href="{{StaticUrlPrefix}}/img/gitea-lg.png" title="{{AppName}}"> <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css"> <link rel="preload" as="font" href="{{StaticUrlPrefix}}/fomantic/themes/default/assets/fonts/icons.woff2" type="font/woff2" crossorigin="anonymous"> <link rel="preload" as="font" href="{{StaticUrlPrefix}}/fomantic/themes/default/assets/fonts/outline-icons.woff2" type="font/woff2" crossorigin="anonymous"> |