Skip to content

Commit a0b63a8

Browse files
dworthenpetergtz
authored andcommitted
fix gh action 'Build with Jekyll' task
Signed-off-by: Derek Worthen <[email protected]>
1 parent 02463f4 commit a0b63a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_includes/articles.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% assign collection = site.collections | find: "label", {{include.collection}} %}
2-
{% if collection %}
2+
{% if collection and collection.docs %}
33
{% assign docs = collection.docs %}
44
{% if include.sort-by %}
55
{% assign docs = docs | sort: {{include.sort-by}} %}
@@ -10,7 +10,7 @@
1010
{% endif %}
1111

1212
<div class="articles">
13-
{% if collection %}
13+
{% if docs %}
1414
{% for post in docs limit:{{include.limit}} %}
1515
{% if post.link %}
1616
{% assign location = post.link %}

_includes/cards.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% assign collection = site.collections | find: "label", {{include.collection}} %}
2-
{% if collection %}
2+
{% if collection and collection.docs %}
33
{% assign docs = collection.docs | sort: "date" %}
44
{% if include.sort-by %}
55
{% assign docs = docs | sort: {{include.sort-by}} %}
@@ -10,7 +10,7 @@
1010
{% endif %}
1111

1212
<div class="cards">
13-
{% if collection %}
13+
{% if docs %}
1414
{% for post in docs limit:{{include.limit}} %}
1515
{% if post.link %}
1616
{% assign location = post.link %}

0 commit comments

Comments
 (0)