-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
books.xml
26 lines (26 loc) · 1.17 KB
/
books.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
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{{ site.title | smartify | strip_html | normalize_whitespace | escape_xml }}: Books and Essays</title>
<description>Books and standalone entries</description>
<link>{{ "books" | absolute_url }}</link>
<atom:link href="{{ page.url | absolute_url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
{% assign books = site.books | sort: 'date' | reverse %}
{% for i in books limit:100 %}
<item>
<title>{{ i.title | smartify | strip_html | normalize_whitespace | escape_xml }}</title>
<description>{{ i.excerpt | escape_xml }}</description>
<pubDate>{{ i.date | date_to_rfc822 }}</pubDate>
<link>{{ i.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ i.url | prepend: site.baseurl | prepend: site.url }}</guid>
<content:encoded><![CDATA[{{ i.content | strip | escape_xml }}]]></content:encoded>
</item>
{% endfor %}
</channel>
</rss>