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

22 lines
675 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 12:13:55 +08:00
<ul class="{%- if category === post.meta.category %}aside-list-show{%- endif %}">
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>