|
1 | 1 | --- |
| 2 | +layout: nil |
2 | 3 | --- |
3 | 4 | <?xml version="1.0" encoding="UTF-8"?> |
4 | | -<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> |
5 | | - <channel> |
6 | | - <title>{{ site.name | xml_escape }}</title> |
7 | | - <description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description> |
8 | | - <link>{{ site.url }}</link> |
9 | | - <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml"/> |
10 | | - {% for article in page.articles limit:10 %} |
11 | | - <item> |
12 | | - <title>{{ article.title | xml_escape }}</title> |
13 | | - <dc:creator>{{ article.author | xml_escape }}</dc:creator> |
14 | | - {% if article.excerpt %} |
15 | | - <description>{{ article.excerpt | xml_escape }}</description> |
16 | | - {% elsif article.content %} |
17 | | - <description>{{ article.content | xml_escape }}</description> |
18 | | - {% else %} |
19 | | - <description></description> |
20 | | - {% endif %} |
21 | | - <pubDate>{{ article.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> |
22 | | - <link>{{ article.url }}</link> |
23 | | - <guid isPermaLink="true">{{ article.url }}</guid> |
24 | | - </item> |
25 | | - {% endfor %} |
26 | | - </channel> |
27 | | -</rss> |
| 5 | +<feed xmlns="http://www.w3.org/2005/Atom"> |
| 6 | + <title>{{ site.name | xml_escape }}</title> |
| 7 | + <description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description> |
| 8 | + <link href="{{ site.url }}" /> |
| 9 | + <link href="{{ site.url }}/feed.xml" rel="self" /> |
| 10 | + <updated>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</updated> |
| 11 | + {% for article in page.articles limit:10 %} |
| 12 | + <entry> |
| 13 | + <title>{{ article.title | xml_escape }}</title> |
| 14 | + <link href="{{ article.url }}" /> |
| 15 | + <id>{{ article.url }}</id> |
| 16 | + <author> |
| 17 | + <name>{{ article.author | xml_escape }}</name> |
| 18 | + </author> |
| 19 | + <updated>{{ article.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</updated> |
| 20 | + </entry> |
| 21 | + {% endfor %} |
| 22 | +</feed> |
0 commit comments