Skip to content

Commit 3c9a64c

Browse files
committed
Make feed sorting better
1 parent ec8c704 commit 3c9a64c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

_board/espressif_esp32s3_box_lite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manufacturer: "Espressif"
77
board_url:
88
- "https://www.adafruit.com/product/5511"
99
board_image: "espressif_esp32s3_box_lite.jpg"
10-
date_added: 22-07-08
10+
date_added: 2022-7-08
1111
family: esp32s3
1212
features:
1313
- Wi-Fi

feed.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<link>{{ "/" | absolute_url }}</link>
99
<description>A list of CircuitPython and Blinka supported boards</description>
1010
<lastBuildDate>{{ "now" | date_to_rfc822 }}</lastBuildDate>
11-
{% for board in site.board %}
11+
{% assign cp_boards = site.board | sort: 'date_added' | reverse %}
12+
{% for board in cp_boards %}
1213
{%- if board.downloads_display == false -%}
1314
{%- continue -%}
1415
{%- endif -%}
@@ -23,7 +24,8 @@
2324
</item>
2425
{%- endif -%}
2526
{% endfor %}
26-
{% for board in site.blinka %}
27+
{% assign blinka_boards = site.board | sort: 'date_added' | reverse %}
28+
{% for board in blinka_boards %}
2729
<item>
2830
<title>{{ board.name }}</title>
2931
<link>{{ board.url | absolute_url }}</link>

0 commit comments

Comments
 (0)