sort rss feed with newest at top

This commit is contained in:
foamyguy 2024-03-21 12:00:09 -05:00
parent ec8c704485
commit 1315cdac01
3 changed files with 6 additions and 4 deletions

View file

@ -7,7 +7,7 @@ manufacturer: "Espressif"
board_url:
- "https://www.adafruit.com/product/5511"
board_image: "espressif_esp32s3_box_lite.jpg"
date_added: 22-07-08
date_added: 2022-07-08
family: esp32s3
features:
- Wi-Fi

View file

@ -7,7 +7,7 @@ manufacturer: "LILYGO"
board_url:
- "https://www.lilygo.cc/products/t-display-s3"
board_image: "lilygo_tdisplay_s3.jpg"
date_added: 2024-3-9
date_added: 2024-3-09
family: esp32s3
features:
- Wi-Fi

View file

@ -8,7 +8,8 @@ permalink: /feed.rss
<link>{{ "/" | absolute_url }}</link>
<description>A list of CircuitPython and Blinka supported boards</description>
<lastBuildDate>{{ "now" | date_to_rfc822 }}</lastBuildDate>
{% for board in site.board %}
{% assign chronological_boards = site.board | sort: "date_added" %}
{% for board in chronological_boards reversed %}
{%- if board.downloads_display == false -%}
{%- continue -%}
{%- endif -%}
@ -23,7 +24,8 @@ permalink: /feed.rss
</item>
{%- endif -%}
{% endfor %}
{% for board in site.blinka %}
{% assign chronological_blinka_boards = site.board | sort: "date_added" %}
{% for board in chronological_blinka_boards reversed %}
<item>
<title>{{ board.name }}</title>
<link>{{ board.url | absolute_url }}</link>