aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-26 06:56:42 +0200
committerGitHub <noreply@github.com>2023-04-26 00:56:42 -0400
commit517f9f5aa4b02e3f4e41654352014bb604ce76e2 (patch)
tree63b7077819f45dea13609854c308ad6d4529b4db /templates/base
parent75e35fb03a86e66fbddda30ef2b4d2df892d2b11 (diff)
downloadgitea-517f9f5aa4b02e3f4e41654352014bb604ce76e2.tar.gz
gitea-517f9f5aa4b02e3f4e41654352014bb604ce76e2.zip
Don't set meta `theme-color` by default (#24340)
Fixes https://github.com/go-gitea/gitea/issues/24321. By not setting this meta tag, Safari will use body color for chrome and out-of-viewport areas, which looks much better then static mismatching green. As per [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color) it's really only Apple browsers who still support this tag, most others have dropped support.
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/head.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 3932a58598..cd9bbed444 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}}{{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}}</title>
{{if .ManifestData}}<link rel="manifest" href="data:{{.ManifestData}}">{{end}}
- <meta name="theme-color" content="{{ThemeColorMetaTag}}">
+ {{if ThemeColorMetaTag}}<meta name="theme-color" content="{{ThemeColorMetaTag}}">{{end}}
<meta name="default-theme" content="{{DefaultTheme}}">
<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}">
<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}{{MetaDescription}}{{end}}">