Skip to content

Commit

Permalink
fix nav
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlntv committed Apr 29, 2024
1 parent 1b2fddf commit 2a2a824
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions vanilla/side-navigation.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- heading: Foundations
subheadings:
- title: Icons
url: /docs/components/icons
url: /docs/foundations/icons
- title: Typography
url: /docs/base/typography
url: /docs/foundations/typography
- heading: Components
subheadings:
- title: Accordion
Expand Down
20 changes: 8 additions & 12 deletions vanilla/templates/_layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,16 @@
</li>
{%- endmacro %}

<ul class="p-side-navigation__list">

{% for item in sideNavigation %}

<li class="p-side-navigation__item">
<h3 class="p-side-navigation__heading">{{ item.heading | replace("{version}", version) }}</h3>
<ul class="p-side-navigation__list">
{% for subheading in item.subheadings %}
{{ side_nav_item(subheading.url, subheading.title) }}
{% endfor %}
</ul>
</li>

<h3 class="p-side-navigation__heading">{{ item.heading | replace("{version}", version) }}</h3>
<ul class="p-side-navigation__list">
{% for subheading in item.subheadings %}
{{ side_nav_item(subheading.url, subheading.title) }}
{% endfor %}
</ul>
{% endfor %}
</ul>

</div>
</div>
</aside>
Expand Down

0 comments on commit 2a2a824

Please sign in to comment.