Fix RSS feed to pass W3C validation (fixes #446)

This commit is contained in:
Saivann 2014-06-09 14:58:15 -04:00
parent 5fc4b8a21f
commit f7f25abcaa
3 changed files with 12 additions and 6 deletions

View file

@ -7,14 +7,16 @@
<link>https://bitcoin.org/en/alerts</link>
<description>This RSS feed allows to follow events and alerts surrounding the Bitcoin network and software.</description>
<image>
<title>Bitcoin network status and alerts</title>
<url>https://bitcoin.org/img/logo_rss.png</url>
<link>https://bitcoin.org/en/alerts</link>
</image>
{% filter_for p in site.pages reversed sort_by:date category:alert %}
<item>
<title>{{ p.title }}</title>
<title>{{ p.title | htmlescape }}</title>
<link>https://bitcoin.org{{ p.url | replace:'.html','' }}</link>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }}</pubDate>
<guid>https://bitcoin.org{{ p.url | replace:'.html','' }}</guid>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }} 00:00:00 GMT</pubDate>
</item>
{% endfilter_for %}
</channel>

View file

@ -7,14 +7,16 @@
<link>https://bitcoin.org/en/events</link>
<description>This RSS feed allows to follow Bitcoin events and conferences.</description>
<image>
<title>Bitcoin conferences and events</title>
<url>https://bitcoin.org/img/logo_rss.png</url>
<link>https://bitcoin.org/en/events</link>
</image>
{% filter_for p in site.conferences sort_by:date %}
<item>
<title>{{ p.title }}, {{ p.city }} - {{ p.country }}</title>
<title>{{ p.title | htmlescape }}, {{ p.city | htmlescape }} - {{ p.country | htmlescape }}</title>
<link>{{ p.link }}</link>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }}</pubDate>
<guid>{{ p.link }}</guid>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }} 00:00:00 GMT</pubDate>
</item>
{% endfilter_for %}
</channel>

View file

@ -7,14 +7,16 @@
<link>https://bitcoin.org/en/version-history</link>
<description>This RSS feed allows to follow Bitcoin Core new releases.</description>
<image>
<title>Bitcoin Core releases</title>
<url>https://bitcoin.org/img/logo_rss.png</url>
<link>https://bitcoin.org/en/version-history</link>
</image>
{% filter_for p in site.pages reversed sort_by:date category:release %}
<item>
<title>{{ p.title }}</title>
<title>{{ p.title | htmlescape }}</title>
<link>https://bitcoin.org{{ p.url | replace:'.html','' }}</link>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }}</pubDate>
<guid>https://bitcoin.org{{ p.url | replace:'.html','' }}</guid>
<pubDate>{{ p.date | date: "%a, %d %b %Y" }} 00:00:00 GMT</pubDate>
</item>
{% endfilter_for %}
</channel>