代码拉取完成,页面将自动刷新
---
---
<section class="categories">
{% assign categories = site.categories | sort %}
{% for category in categories %}
{% assign name = category[0] %}
{% assign posts = category[1] %}
{% assign size = posts | size %}
<section class="category">
<h3>
{% if site.active_lang == "en" %}
<a href="{{ site.url }}/en/category/{{ name | slugify }}/">{{ name | replace: "-", " "}}</a>
{% else %}
<a href="{{ site.url }}/category/{{ name | slugify }}/">{{ name | replace: "-", " " }}</a>
{% endif %}
</h3>
<ul>
{% assign tutorials = posts | sort: "title" %}
{% for tutorial in tutorials limit: 4 %}
<li><a href="{{ site.url }}{{ tutorial.url }}">{% include document-icon.html icon=tutorial.type %}{{ tutorial.title }}</a></li>
{% endfor %}
{% if size > 4 %}
<li><a href="{{ site.url }}/category/{{ name | slugify }}/">{{ size | minus: 4 }} more...</a></li>
{% endif %}
</ul>
</section>
{% endfor %}
</section>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。