You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{%- set categories = resource.pages|get_categories(post) %}
|
|
|
|
<aside class="aside-container">
|
|
|
|
<ul>
|
|
|
|
{%- for category in categories %}
|
|
|
|
{%- if category.name === 'top' %}
|
|
|
|
{%- for item in category.pages|splitComponentsByType(category.name) %}
|
|
|
|
<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 %}
|
|
|
|
{%- else %}
|
|
|
|
<li open="open">
|
|
|
|
<h4>{{category.name}}</h4>
|
|
|
|
<ul class="{%- if category === post.meta.category %}aside-list-show{%- endif %}">
|
|
|
|
{%- for item in category.pages|splitComponentsByType(category.name) %}
|
|
|
|
{%- if item.divider === true %}
|
|
|
|
<li class="type-divider">{{item.name}}</li>
|
|
|
|
{%- else %}
|
|
|
|
<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>
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
</ul>
|
|
|
|
</aside>
|