Permalink
Browse files

Improve feed.xml.

  • Loading branch information...
1 parent 0c72c1f commit a48df22024bee82bb914b3c8b81adf4dd7e02894 @XhmikosR XhmikosR committed Mar 1, 2014
Showing with 32 additions and 14 deletions.
  1. +32 −14 feed.xml
View
@@ -1,21 +1,39 @@
---
-layout: none
+layout: nil
---
-<?xml version="1.0" encoding="UTF-8"?>
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:atom="http://www.w3.org/2005/Atom"
+ xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
+ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
+ >
<channel>
- <title>{{ site.name | xml_escape }}</title>
- <description>{{ site.description | xml_escape }}</description>
- <link>{{ site.url }}</link>
- <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
+ <title xml:lang="en">{{ site.name}}</title>
+ <atom:link type="application/atom+xml" href="{{ site.url }}/feed.xml" rel="self"/>
+ <link>{{ site.url }}/</link>
+ <pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
+ <lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</lastBuildDate>
+ <language>en-US</language>
+ <generator>Jekyll v{{ jekyll.version }}</generator>
+ <description>{{ site.feed_description }}</description>
{% for post in site.posts limit:10 %}
- <item>
- <title>{{ post.title | xml_escape }}</title>
- <description>{{ post.content | xml_escape }}</description>
- <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
- <link>{{ site.url }}/{{ post.url }}</link>
- <guid isPermaLink="true">{{ site.url }}/{{ post.url }}</guid>
- </item>
+ <item>
+ <title>{{ post.title }}</title>
+ <link>{{ site.url }}{{ post.url }}</link>
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
+ <dc:creator>{{ post.author }}</dc:creator>
+ {% for tag in post.tags %}
+ <category>{{ tag | xml_escape }}</category>
+ {% endfor %}
+ {% for cat in post.categories %}
+ <category>{{ cat | xml_escape }}</category>
+ {% endfor %}
+ <guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
+ <description>{{ post.content | xml_escape }}</description>
+ </item>
{% endfor %}
</channel>
</rss>

0 comments on commit a48df22

Please sign in to comment.