You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
510 B

{%- set categories = resource.pages|get_all_category %}
10 years ago
{%- set items = resource.pages|find_category(post.meta.category) %}
<aside class="aside-container">
10 years ago
<ul>
{%- for category in categories %}
<li>
<h4>{{category}}</h4>
<ul>
{%- for item in items %}
<li class="{%- if item.title === post.title %}current{%- endif %}">
<a href="{{permalink_url(item)}}">{{item.title}}</a>
</li>
{%- endfor %}
</ul>
</li>
{%- endfor %}
10 years ago
</ul>
</aside>