aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-16 07:13:23 +0200
committerGitHub <noreply@github.com>2023-05-16 05:13:23 +0000
commit30d922226778a469f01bbb1b933e65428f9266df (patch)
treef4423df49330dc2b3b7517e5814b1a42d829ee12 /docs
parentbdd3007c879c190e4f632ff65c4b393d7374653e (diff)
downloadgitea-30d922226778a469f01bbb1b933e65428f9266df.tar.gz
gitea-30d922226778a469f01bbb1b933e65428f9266df.zip
Remove meta charset from HTML5 documents (#24744)
When `<!DOCTYPE html>` is present, the default (and only valid) charset it `utf-8` so it does not need to be specified. Also we do serve with HTML with `Content-Type: text/html; charset=utf-8`, so it is duplicate info anyways.
Diffstat (limited to 'docs')
-rw-r--r--docs/layouts/alias.html1
1 files changed, 0 insertions, 1 deletions
diff --git a/docs/layouts/alias.html b/docs/layouts/alias.html
index b96cb34219..69d895b1fd 100644
--- a/docs/layouts/alias.html
+++ b/docs/layouts/alias.html
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html{{ with site.LanguageCode | default site.Language.Lang }} lang="{{ . }}"{{ end }}>
<head>
- <meta charset="utf-8">
<title>{{ .Permalink }}</title>
<link rel="canonical" href="{{ .Permalink }}">
<meta name="robots" content="noindex">