Skip to content

Commit ccc7511

Browse files
committed
Re-add changes to nav
1 parent 16d49ce commit ccc7511

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_includes/components/site_nav.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
Overwrites:
99
pages_top_size, collections_size, collection_entry,
1010
collection_key, collection_value, collection.
11+
Most of this file is copied frem just_the_docs, the local changes are:
12+
Remove id and class from nav element (class="site-nav" id="site-nav"),
13+
instead place them on the parent nav in components/sidebar.
14+
This allows the script that shows/hide nav on mobile to work on our modified
15+
sidebar with TOC.
1116
{%- endcomment -%}
12-
13-
<nav aria-label="Main" id="site-nav" class="site-nav">
17+
<nav>
1418
{% assign pages_top_size = site.html_pages
1519
| where_exp:"item", "item.title != nil"
1620
| where_exp:"item", "item.parent == nil"

0 commit comments

Comments
 (0)