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

23 lines
628 B
HTML
Raw Normal View History

2015-06-04 17:56:09 +08:00
<script src="/dist/index.js"></script>
{%- set categories = resource.pages|get_all_category %}
<aside class="aside-container">
<ul>
{%- for category in categories %}
{%- set items = resource.pages|find_category(category) %}
<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}}
<span class="chinese">{{item.meta.chinese}}</span>
</a>
</li>
{%- endfor %}
</ul>
</li>
{%- endfor %}
</ul>
</aside>