diff options
author | silverwind <me@silverwind.io> | 2023-05-16 07:13:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 05:13:23 +0000 |
commit | 30d922226778a469f01bbb1b933e65428f9266df (patch) | |
tree | f4423df49330dc2b3b7517e5814b1a42d829ee12 /docs | |
parent | bdd3007c879c190e4f632ff65c4b393d7374653e (diff) | |
download | gitea-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.html | 1 |
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"> |