ant-design/site/templates/component-aside.html

22 lines
599 B
HTML
Raw Normal View History

2015-06-05 10:28:11 +08:00
{%- set categories = resource.pages|get_components_categories %}
2015-06-04 17:56:09 +08:00
<aside class="aside-container">
<ul>
{%- for category in categories %}
{%- set items = resource.pages|find_category(category) %}
<li>
<h4>{{category}}</h4>
2015-06-10 11:10:09 +08:00
<ul >
2015-06-04 17:56:09 +08:00
{%- for item in items %}
<li class="{%- if item.title === post.title %}current{%- endif %}">
<a href="{{permalink_url(item)}}">
{{item.title}}
<span class="chinese">{{item.meta.chinese}}</span>
</a>
</li>
{%- endfor %}
</ul>
</li>
{%- endfor %}
</ul>
</aside>