-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotes.xml
More file actions
22 lines (22 loc) · 984 Bytes
/
notes.xml
File metadata and controls
22 lines (22 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
---
<?xml version="1.0" encoding="UTF-8"?>
{% capture srcbase %}src="{{site.url}}/{% endcapture %}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }} notes</title>
<description>notes</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/notes.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>{{ site.data.notes.first.date | date_to_rfc822 }}</lastBuildDate>
{% for note in site.data.notes limit: 10 %}
<item>
<title>{{ note.date | date: "%Y-%m-%d" }}</title>
<description>{{ note.content | markdownify | xml_escape }}</description>
<pubDate>{{ note.date | date_to_rfc822 }}</pubDate>
<link>{{ site.url }}/notes#date-{{ note.date | date: "%Y-%m-%d" }}{{ note.slug }}</link>
<guid isPermaLink="true">{{ site.url }}/notes#date-{{ note.date | date: "%Y-%m-%d" }}{{ note.slug }}</guid>
</item>
{% endfor %}
</channel>
</rss>