-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
35 lines (35 loc) · 1.42 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
31
32
33
34
35
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<description>{{ site.description | xml_escape }}</description>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lang>en</lang>
<image>
<url>{{ "/assets/images/appicon/apple-touch-icon.png" | absolute_url }}</url>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<width>128</width>
<height>128</height>
</image>
<link rel="self" href="{{ "/feed.xml" | absolute_url }}" xmlns="http://www.w3.org/2005/Atom"/>
<link rel="hub" href="https://pubsubhubbub.appspot.com" xmlns="http://www.w3.org/2005/Atom"/>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{{ post.url | absolute_url }}</link>
<guid isPermaLink="true">{{ post.url | absolute_url }}</guid>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<author>{{ "[email protected] (Nikhil)" | xml_escape }}</author>
{%- if post.bannerImage -%}
<media:content url="{{ post.bannerImage | append: '-1200w.png' | absolute_url }}" medium="image" lang="en"/>
{%- endif -%}
</item>
{% endfor %}
</channel>
</rss>