mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-11-30 13:08:26 +08:00
refactor: refactor to 11ty to support Tencent Cloud EdgeOne Maker
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{% assign locale = include.locale | default: site.locale %}
|
||||
{% assign entries = include.entries | default: site[include.collection] | where_exp: "post", "post.hidden != true" %}
|
||||
|
||||
{% if include.sort_by %}
|
||||
{% assign entries = entries | sort: include.sort_by %}
|
||||
{% endif %}
|
||||
|
||||
{% if include.sort_order == 'reverse' %}
|
||||
{% assign entries = entries | reverse %}
|
||||
{% endif %}
|
||||
|
||||
{%- for post in entries -%}
|
||||
{% include archive-single.html locale=locale type=include.type %}
|
||||
{%- endfor -%}
|
||||
Reference in New Issue
Block a user