atom.xml 940 B

123456789101112131415161718192021222324252627
  1. ---
  2. layout: nil
  3. ---
  4. <?xml version="1.0" encoding="utf-8"?>
  5. <feed xmlns="http://www.w3.org/2005/Atom">
  6. <title type="text" xml:lang="en">{{ translate feed_title }}</title>
  7. <link type="application/atom+xml" href="{{ site.url }}atom.xml" rel="self"/>
  8. <link type="text" href="{{ site.url }}" rel="alternate"/>
  9. <updated>{{ site.time | date_to_xmlschema }}</updated>
  10. <id>{{ site.url }}</id>
  11. <author>
  12. <name>The Open Company Initiative</name>
  13. </author>
  14. <rights>Copyright (c) 2014, The Open Company Initiative; CC-BY.</rights>
  15. {% for post in site.posts limit:20 %}
  16. <entry>
  17. <title>{% translate post.title %}</title>
  18. <link href="{{ site.url }}{{ post.url }}"/>
  19. <updated>{{ post.date | date_to_xmlschema }}</updated>
  20. <id>{{ site.url }}{{ post.id }}</id>
  21. <content type="html">{{ post.content | xml_escape }}</content>
  22. </entry>
  23. {% endfor %}
  24. </feed>