mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-29 15:25:56 +00:00
♿️ Add header and main menu nav landmarks (#3048)
Wrap the page header in a header element and the subnavigation menu in a labelled nav landmark. Addresses #3023. Co-authored-by: Chris Herborth <chrish@taffer.ca>
This commit is contained in:
1 parent
3ea1c3b49f
commit
74d03343b9
3 files changed
+33
-28
No files matched your search
@@ -19,12 +19,14 @@
|
||||
{{ i18n "nav.skip_to_main" }}
|
||||
</a>
|
||||
</div>
|
||||
{{ $header := print "header/" site.Params.header.layout ".html" }}
|
||||
{{ if templates.Exists ( printf "partials/%s" $header ) }}
|
||||
{{ partial $header . }}
|
||||
{{ else }}
|
||||
{{ partial "header/basic.html" . }}
|
||||
{{ end }}
|
||||
<header>
|
||||
{{ $header := print "header/" site.Params.header.layout ".html" }}
|
||||
{{ if templates.Exists ( printf "partials/%s" $header ) }}
|
||||
{{ partial $header . }}
|
||||
{{ else }}
|
||||
{{ partial "header/basic.html" . }}
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="relative flex flex-col grow">
|
||||
<main id="main-content" class="grow">
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
||||
Reference in new issue
Block a user