Skip to content

Commit

Permalink
Create navigation.html
Browse files Browse the repository at this point in the history
  • Loading branch information
anikbrazeau authored Oct 23, 2024
1 parent 6064978 commit e479fd0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/_includes/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h2>Table of contents</h2>
{% assign mydocs = site.pages | where:"lang","en" | where:"layout","page" | group_by: 'category' | sort: 'name' %}
{% for cat in mydocs %}
<h3>{{ cat.name | capitalize }}</h3>
<ul>
{% assign items = cat.items | sort: 'title' %}
{% for item in items %}
<li><a href="{{ site.baseurl }}{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}

0 comments on commit e479fd0

Please sign in to comment.