summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-08-06 09:04:51 +0200
committerGitHub <noreply@github.com>2020-08-06 08:04:51 +0100
commitf1a42f5d5ee0279ddec7973a1ba9236c70bd5b5e (patch)
tree57cedefa5427775dc2c4b2bf55a711170b344c95 /templates/base
parent983cbb2c9f5bcdd631ae4744e5b2a6793f0d6dcb (diff)
downloadgitea-f1a42f5d5ee0279ddec7973a1ba9236c70bd5b5e.tar.gz
gitea-f1a42f5d5ee0279ddec7973a1ba9236c70bd5b5e.zip
Add SVG favicon (#12437)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/head.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 0f863b8312..0760354e43 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -58,7 +58,8 @@
{{end}}
};
</script>
- <link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png">
+ <link rel="icon" href="{{StaticUrlPrefix}}/img/favicon.svg" type="image/svg+xml">
+ <link rel="alternate icon" href="{{StaticUrlPrefix}}/img/favicon.png" type="image/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}}">
{{if .RequireSimpleMDE}}