feed.xml

 1---
 2layout: null
 3sitemap:
 4  exclude: 'yes'
 5---
 6<?xml version="1.0" encoding="UTF-8"?>
 7<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 8  <channel>
 9    <title>{{ site.title | xml_escape }}</title>
10    <description>{{ site.description | xml_escape }}</description>
11    <link>{{ site.url }}{{ site.baseurl }}/</link>
12    <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
13    <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
14    <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
15    <generator>Jekyll v{{ jekyll.version }}</generator>
16    {% for post in site.posts limit:10 %}
17      <item>
18        <title>{{ post.title | xml_escape }}</title>
19        <description>{{ post.content | xml_escape }}</description>
20        <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
21        <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
22        <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
23        {% for tag in post.tags %}
24        <category>{{ tag | xml_escape }}</category>
25        {% endfor %}
26        {% for cat in post.categories %}
27        <category>{{ cat | xml_escape }}</category>
28        {% endfor %}
29      </item>
30    {% endfor %}
31  </channel>
32</rss>