To save vertical space on small screens, it's possible to split the navbar
contents into two (or more) columns using standard m.css
-`grid functionality <{filename}/css/grid.rst>`_:
+`grid functionality <{filename}/css/grid.rst>`_. For better accessibility,
+specify the start index on the second :html:`<ol>` element.
.. code:: html
:hl_lines: 7 8 9 10 11 12 13 14 15 16 17 18 19
<li><a href="#">Showcase</a></li>
<li><a href="#">Download</a></li>
</ol>
- <ol class="m-col-t-6 m-col-m-none">
+ <ol class="m-col-t-6 m-col-m-none" start="4">
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ol>
<li><a href="#">Showcase</a></li>
<li><a href="#">Download</a></li>
</ol>
- <ol class="m-col-t-6 m-col-m-none">
+ <ol class="m-col-t-6 m-col-m-none" start="4">
<li>
<a href="#">Blog</a>
<ol>
</li>
{% endfor %}
</ol>
- <ol class="m-col-t-6 m-col-m-none">
+ {% set start = M_LINKS_NAVBAR1|length + 1 %}
+ <ol class="m-col-t-6 m-col-m-none" start="{{ start }}">
{% for title, link, slug, sub in M_LINKS_NAVBAR2 %}
<li>
<a href="{{ link|format_siteurl }}"{% if (page and page.highlight == slug) or slug == page_slug %} id="m-navbar-current"{% endif %}>{{ title }}</a>