Skip to content

Commit

Permalink
Update nav_list
Browse files Browse the repository at this point in the history
  • Loading branch information
hju00 authored Apr 11, 2024
1 parent abd208a commit 736746c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/nav_list
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
{% if nav.children != null %}
<ul>
{% for child in nav.children %}
<li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }}</a></li>
{% assign category = site.categories[child.category] | where_exp: "item", "item.hidden != true" %}
<li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }} ({{ category.size }})</a></li>
{% endfor %}
</ul>
{% endif %}
Expand Down

0 comments on commit 736746c

Please sign in to comment.