Use include documents-collection.html
in home
layout
This commit is contained in:
@ -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 -%}
|
||||
|
Reference in New Issue
Block a user