ant-design/theme/templates/aside.html

19 lines
502 B
HTML
Raw Normal View History

2015-05-11 18:09:13 +08:00
{%- set categories = resource.pages|get_all_category %}
2015-05-09 18:16:36 +08:00
<aside class="aside-container">
2015-05-09 17:36:15 +08:00
<ul>
2015-05-11 18:09:13 +08:00
{%- for category in categories %}
2015-05-12 17:50:03 +08:00
{%- set items = resource.pages|find_category(category) %}
2015-05-11 18:09:13 +08:00
<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>
2015-05-09 18:16:36 +08:00
</li>
2015-05-11 18:09:13 +08:00
{%- endfor %}
2015-05-09 17:36:15 +08:00
</ul>
</aside>