mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-18 17:12:23 -06:00
Simplified nav nesting
(cherry picked from commit eeb3f342b17a744d0c2b2f0360359fa3276f8abd)
This commit is contained in:
parent
418cf1d640
commit
ee8b901bcb
@ -1,4 +1,3 @@
|
|||||||
<nav role="navigation" aria-label="Main navigation">
|
|
||||||
<ul class="navigation-list">
|
<ul class="navigation-list">
|
||||||
{%- assign pages_list = site.html_pages | sort:"nav_order" -%}
|
{%- assign pages_list = site.html_pages | sort:"nav_order" -%}
|
||||||
{%- for node in pages_list -%}
|
{%- for node in pages_list -%}
|
||||||
@ -37,4 +36,3 @@
|
|||||||
{%- endunless -%}
|
{%- endunless -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
|
||||||
|
@ -4,7 +4,7 @@ layout: table_wrappers
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<html lang="{{ site.lang | default: "en-US" }}">
|
<html lang="{{ site.lang | default: 'en-US' }}">
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@ -14,10 +14,9 @@ layout: table_wrappers
|
|||||||
<a href="{{ site.url }}{{ site.baseurl }}" class="site-title lh-tight">{% include title.html %}</a>
|
<a href="{{ site.url }}{{ site.baseurl }}" class="site-title lh-tight">{% include title.html %}</a>
|
||||||
<button class="menu-button fs-3 js-main-nav-trigger" data-text-toggle="Hide" type="button">Menu</button>
|
<button class="menu-button fs-3 js-main-nav-trigger" data-text-toggle="Hide" type="button">Menu</button>
|
||||||
</div>
|
</div>
|
||||||
|
<nav role="navigation" aria-label="Main navigation" class="navigation main-nav js-main-nav">
|
||||||
<div class="navigation main-nav js-main-nav">
|
|
||||||
{% include nav.html %}
|
{% include nav.html %}
|
||||||
</div>
|
</nav>
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<p class="text-small text-grey-dk-000 mb-4">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
|
<p class="text-small text-grey-dk-000 mb-4">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user