Skip to content

Commit 2533c09

Browse files
committed
fix filtering on bob posts
1 parent 9d8ba12 commit 2533c09

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ feature_text: |
2424
### Classic 2017 Episodes on Ports & Adapters, by Bob
2525

2626
<ul>
27-
{% for post in site.posts %}
28-
{% if post.date | date: "%Y" == "2017" %}
27+
{% for post in site.posts reversed %}
28+
{% assign year = post.date | date: "%Y" %}
29+
{% if year == "2017" %}
2930
<li>
3031
<a href="{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} {{ post.title }}</a>
3132
</li>

0 commit comments

Comments
 (0)