Use include documents-collection.html in home layout

This commit is contained in:
iBug
2024-09-17 16:37:55 +08:00
parent 7d212bc310
commit 075fad74cb
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{% assign entries = site[include.collection] | where_exp: "post", "post.hidden != true" %}
{% 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 %}
@ -9,5 +9,5 @@
{% endif %}
{%- for post in entries -%}
{% include archive-single.html %}
{% include archive-single.html type=include.type %}
{%- endfor -%}