File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{% assign collection = site.collections | find: "label", {{include.collection}} %}
2
- {% if collection %}
2
+ {% if collection and collection.docs %}
3
3
{% assign docs = collection.docs %}
4
4
{% if include.sort-by %}
5
5
{% assign docs = docs | sort: {{include.sort-by}} %}
10
10
{% endif %}
11
11
12
12
< div class ="articles ">
13
- {% if collection %}
13
+ {% if docs %}
14
14
{% for post in docs limit:{{include.limit}} %}
15
15
{% if post.link %}
16
16
{% assign location = post.link %}
Original file line number Diff line number Diff line change 1
1
{% assign collection = site.collections | find: "label", {{include.collection}} %}
2
- {% if collection %}
2
+ {% if collection and collection.docs %}
3
3
{% assign docs = collection.docs | sort: "date" %}
4
4
{% if include.sort-by %}
5
5
{% assign docs = docs | sort: {{include.sort-by}} %}
10
10
{% endif %}
11
11
12
12
< div class ="cards ">
13
- {% if collection %}
13
+ {% if docs %}
14
14
{% for post in docs limit:{{include.limit}} %}
15
15
{% if post.link %}
16
16
{% assign location = post.link %}
You can’t perform that action at this time.
0 commit comments