www.moparscape.org/.themes/classic/source/atom.xml
Mikkel Hoegh f4a6bd2a68 Add generator tag to Atom feed.
generator is an optional element, but let's give credit where it's due.
Besides, it can be helpful to feed consumers to know what tool generated the file.
2011-10-04 00:24:16 +02:00

30 lines
918 B
XML

---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title | xml_escape }}</title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>
<author>
<name>{{ site.author | xml_escape }}</name>
{% if site.email %}
<email>{{ site.email | xml_escape }}</email>
{% endif %}
</author>
<generator uri="http://octopress.org/">Octopress</generator>
{% for post in site.posts limit: 20 %}
<entry>
<title>{{ post.title | xml_escape }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html">{{ post.content | expand_urls: site.url | xml_escape }}</content>
</entry>
{% endfor %}
</feed>