forked from tholman/the-indie-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
30 lines (29 loc) · 1.26 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">
<channel>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
<title>{{ site.title }}</title>
<link>{{ site.url }}</link>
<description>{{ site.tagline }}</description>
</channel>
{% for post in site.posts limit:20 %}
<item>
<title>{{ post.title }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<description>
{% if post.image and post.link %}
<p>
<a href="{{ post.link }}">
<img src="{% if post.remoteImage %}https://s3.amazonaws.com/inspiring.online/assets/post-images/{% else %}http://inspiring.online/assets/post-images/{% endif %}{{ post.image }}" alt="{{ post.title }}"/>
</a>
</p>
{% endif %}
{{ post.content | xml_escape }}
</description>
</item>
{% endfor %}
</rss>