-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
24 lines (24 loc) · 959 Bytes
/
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
---
process: true
---
<?xml version='1.0' encoding='utf-8'?>
<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>
<channel>
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
<atom:link href='{{ site.url }}/feed.xml' rel='self' type='application/rss+xml'></atom:link>
{% assign posts = site.records | sort: 'date' | reverse %}
{% for post in posts %}
{% if post.categories contains 'posts' and post.thumbnail and post.displayed != false %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | strip_html | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.url }}</link>
<guid isPermaLink='true'>{{ post.url | prepend: site.url }}</guid>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>