Files
cpp-core/doc/feed.xml
Kenton Varda 5c1fc0354c Fix feed.xml.
Historically, `post.url` did not include a leading slash, but now it does apparently, which means that when prefixed with `site.baseurl`, we end up with two slashes, which is wrong.

I don't know how to strip the leading slash from `post.url` so I'll just not care that the feed doesn't work when generating the site somewhere other than at root.
2021-08-15 10:41:58 -05:00

23 lines
771 B
XML

---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Cap'n Proto News</title>
<description>Latest updates on Cap'n Proto</description>
<link>https://capnproto.org</link>
<atom:link href="{{ site.baseurl }}feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ post.url }}</link>
<guid isPermaLink="true">{{ post.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>