From 30d922226778a469f01bbb1b933e65428f9266df Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 16 May 2023 07:13:23 +0200 Subject: [PATCH] Remove meta charset from HTML5 documents (#24744) When `` 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. --- docs/layouts/alias.html | 1 - templates/base/head.tmpl | 1 - templates/status/500.tmpl | 1 - templates/swagger/ui.tmpl | 1 - 4 files changed, 4 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 @@ - {{ .Permalink }} diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 5dddc1df93..d702b9fcef 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -1,7 +1,6 @@ - {{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}}{{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} {{if .ManifestData}}{{end}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 469fce593a..94a73e73b4 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -7,7 +7,6 @@ - Internal Server Error - {{AppName}} diff --git a/templates/swagger/ui.tmpl b/templates/swagger/ui.tmpl index 57b560bc15..e2324f9b5b 100644 --- a/templates/swagger/ui.tmpl +++ b/templates/swagger/ui.tmpl @@ -1,7 +1,6 @@ - Gitea API