Skip to content

Commit fffb5ea

Browse files
[PYT-634] limit episodes to 11
1 parent a984d0c commit fffb5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/latest_episodes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ <h2 class="episode-header-text">Latest Episodes</h2>
22
<div class="episode-card-row row col-md-12">
33
{% assign events = site.events | where: "category", "live-stream" %}
44
{% capture now %}{{'now' | date: '%s' | plus: 0 %}}{% endcapture %}
5-
{% for item in events | where: "type" == "live-stream" | sort: "date" %}
5+
{% for item in events | where: "type" == "live-stream" | sort: "date" | limit:11 %}
66
{% capture date %}{{item.date | date: '%s' | plus: 0 %}}{% endcapture %}
77
{% if date <= now %}
88
<div class="episode-card col-md-3 resource-card pytorch-resource">

0 commit comments

Comments
 (0)