From 8e8e936adacea873013b89d534f60207e67f2b05 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 11 May 2022 03:05:50 +0200 Subject: [PATCH] Tidy up `` template (#19678) Neiter `` nor `` require a closing slash at the end in HTML, remove it. --- templates/base/head.tmpl | 46 +++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index f3dcfe8429..7d64c88251 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -4,13 +4,13 @@ {{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} - + - - - + + + - + {{if .GoGetImport}} @@ -22,9 +22,7 @@ - {{template "base/head_script" .}} - {{if .PageIsUserProfile}} - - - - + + + + {{if .Owner.Description}} {{end}} {{else if .Repository}} {{if .Issue}} - - + + {{if .Issue.Content}} - + {{end}} {{else}} - - + + {{if .Repository.Description}} - + {{end}} {{end}} - + {{if .Repository.AvatarLink}} - + {{else}} - + {{end}} {{else}} - - - + + + {{end}} - + {{if .IsSigned }} {{ if ne .SignedUser.Theme "gitea" }}