-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
feed.xml
30 lines (30 loc) · 1.3 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>{{ site.rss.name | xml_escape }}</title>
<description>{% if site.rss.description %}{{ site.rss.description | xml_escape }}{% endif %}</description>
<link>{{ site.rss.url }}</link>
<atom:link href="{{ site.rss.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% if post.author %}
<dc:creator>{{ post.author | xml_escape }}</dc:creator>
{% endif %}
<description>
<![CDATA[
{% if post.hero_image %}
<img src="{{ site.rss.url }}/assets/images/posts/{{ post.hero_image }}" />
{% endif %}
]]>
<div>{{ post.excerpt | markdownify | relative_urls_to_absolute }}</div>
</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.rss.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.rss.url }}{{ post.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>