mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
put secondary navigation in an explicit landmark nav
and add a label on each nav (#28361)
This commit is contained in:
parent
fdfe1679ba
commit
427799d075
@ -5,7 +5,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<nav class="collapse bd-links" id="bd-docs-nav">
|
<nav class="collapse bd-links" id="bd-docs-nav" aria-label="Main navigation">
|
||||||
{%- assign page_slug = page.url | split: '/' | last -%}
|
{%- assign page_slug = page.url | split: '/' | last -%}
|
||||||
{%- for group in site.data.nav -%}
|
{%- for group in site.data.nav -%}
|
||||||
{%- assign link = group.pages | first -%}
|
{%- assign link = group.pages | first -%}
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if page.toc %}
|
{% if page.toc %}
|
||||||
<div class="d-none d-xl-block col-xl-2 bd-toc">
|
<nav class="d-none d-xl-block col-xl-2 bd-toc" aria-label="Secondary navigation">
|
||||||
{{ content | toc_only }}
|
{{ content | toc_only }}
|
||||||
</div>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
|
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">
|
||||||
|
Loading…
Reference in New Issue
Block a user