mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
22 lines
736 B
HTML
22 lines
736 B
HTML
{%- set categories = resource.pages|get_categories(post) %}
|
|
<aside class="aside-container">
|
|
<ul>
|
|
{%- for category in categories %}
|
|
{%- set items = resource.pages|find_category(category) %}
|
|
<li>
|
|
<h4>{{category}}</h4>
|
|
<ul class="{%- if category === post.meta.category %}aside-list-show{%- endif %}">
|
|
{%- for item in items %}
|
|
<li class="{%- if item.title === post.title %}current{%- endif %}">
|
|
<a href="{{permalink_url(item)}}" class="{%- if item.meta.disabled %}nav-link-disabled{%- endif %}">
|
|
{{item.title}}
|
|
<span class="chinese">{{item.meta.chinese}}</span>
|
|
</a>
|
|
</li>
|
|
{%- endfor %}
|
|
</ul>
|
|
</li>
|
|
{%- endfor %}
|
|
</ul>
|
|
</aside>
|