Skip to content

Commit aa9b290

Browse files
authored
Merge pull request #440 from makermelissa/rss
Created RSS feed
2 parents b23738c + 8accf81 commit aa9b290

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

_layouts/rss.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<rss version="2.0">
3+
<channel>
4+
{{ content }}
5+
</channel>
6+
</rss>

feed.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: rss
3+
title: RSS
4+
permalink: /feed.rss
5+
---
6+
7+
<title>CircuitPython.org Boards</title>
8+
<link>{{ "/" | absolute_url }}</link>
9+
<description>A list of CircuitPython and Blinka supported boards</description>
10+
<lastBuildDate>{{ "now" | date_to_rfc822 }}</lastBuildDate>
11+
{% for board in site.board %}
12+
{%- if board.downloads_display == false -%}
13+
{%- continue -%}
14+
{%- endif -%}
15+
{%- if board.board_id != 'unknown' -%}
16+
<item>
17+
<title>{{ board.name }}</title>
18+
<link>{{ board.url | absolute_url }}</link>
19+
<description><![CDATA[ <p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
20+
<category>CircuitPython</category>
21+
<pubDate>{{ board.date_added | date: '%s' | plus: twelve_hours | date_to_rfc822 }}</pubDate>
22+
<guid>{{ board.url | absolute_url }}</guid>
23+
</item>
24+
{%- endif -%}
25+
{% endfor %}
26+
{% for board in site.blinka %}
27+
<item>
28+
<title>{{ board.name }}</title>
29+
<link>{{ board.url | absolute_url }}</link>
30+
<description><![CDATA[ <p>By {{ board.manufacturer }}</p> {{ board.content }} ]]></description>
31+
<category>Blinka</category>
32+
<pubDate>{{ board.date_added | date: '%s' | plus: twelve_hours | date_to_rfc822 }}</pubDate>
33+
<guid>{{ board.url | absolute_url }}</guid>
34+
</item>
35+
{% endfor %}

0 commit comments

Comments
 (0)