1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 09:05:47 +02:00

Documentation skip links (#30073)

* docs(skip-links): add a skip to main navigation skip link

* docs(skip-links): revamp skip-links pattern

* docs(navs): use aria-label on navs

* docs(navs): use 'docs navigation' label in sidebar nav
This commit is contained in:
Gaël Poupard
2020-03-23 15:23:37 +01:00
committed by GitHub
parent 25d2eac45b
commit 9eccb3a230
5 changed files with 14 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
<nav class="collapse bd-links" id="bd-docs-nav" aria-label="Main navigation">
<nav class="collapse bd-links" id="bd-docs-nav" aria-label="Docs navigation">
{{- $url := split .Permalink "/" -}}
{{- $page_slug := index $url (sub (len $url) 2) -}}