Merge PR #560: deploy/gitea-a11y/custom/templates/custom/header_banner.tmpl
This commit is contained in:
20
deploy/gitea-a11y/custom/templates/custom/header_banner.tmpl
Normal file
20
deploy/gitea-a11y/custom/templates/custom/header_banner.tmpl
Normal 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}}
|
||||
Reference in New Issue
Block a user