Skip to content

Commit 8b6236d

Browse files
jorgesumlelafriks
authored andcommitted
Fix duplicated rel attribute (#2549)
According to the HTML 5.1 recommendation "The rel attribute on a and area elements controls what kinds of links the elements create. The attribute’s value must be a set of space-separated tokens." (source https://www.w3.org/TR/html51/links.html#links-created-by-a-and-area-elements)
1 parent acecedc commit 8b6236d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/base/head.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
<i class="octicon octicon-settings"></i>
211211
{{.i18n.Tr "your_settings"}}<!-- Your settings -->
212212
</a>
213-
<a class="item" target="_blank" rel="noopener" href="https://docs.gitea.io" rel="noreferrer">
213+
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
214214
<i class="octicon octicon-question"></i>
215215
{{.i18n.Tr "help"}}<!-- Help -->
216216
</a>
@@ -234,7 +234,7 @@
234234

235235
{{else}}
236236

237-
<a class="item" target="_blank" rel="noopener" href="https://docs.gitea.io" rel="noreferrer">{{.i18n.Tr "help"}}</a>
237+
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a>
238238
<div class="right menu">
239239
{{if .ShowRegistrationButton}}
240240
<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">

0 commit comments

Comments
 (0)