@@ -7,6 +7,16 @@ if (toggleMainNav !== null) {
77}
88
99var toggleContentNav = document.getElementById('js-content-nav-toggle');
10+
11+// Only show the content nav for docs or posts
12+let navEnabledSections = ['docs', 'posts']
13+let showNav = false
14+for (let section of navEnabledSections) {
15+ window.location.href.includes(section) ? showNav = true : null
16+}
17+showNav ? null : toggleContentNav.classList.add('none')
18+
19+
1020if (toggleContentNav !== null) {
1121 toggleContentNav.onclick = function() {
1222 document.body.classList.toggle('has-active-content-nav');