Merge PR #560: deploy/gitea-a11y/custom/templates/custom/header_banner.tmpl

This commit is contained in:
Merge Bot
2026-04-16 05:11:48 +00:00
parent b3bf12f174
commit 67aa59ca04

View File

@@ -0,0 +1,20 @@
{{/*
Gitea a11y fix: V5 — Header/banner landmark
Wraps the top navigation in a <header role="banner"> element.
This provides a banner landmark for screen readers.
Gitea's default base/head.tmpl does not include a header landmark.
This override wraps the navbar in <header>.
Deploy to: custom/templates/custom/header_banner.tmpl
Include by adding {{template "custom/header_banner" .}} before <nav>
*/}}
{{define "custom/header_banner"}}
<header role="banner">
{{end}}
{{define "custom/header_banner_close"}}
</header>
{{end}}