The code behind my Jekyll-powered blog.

feed.xml 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. layout: null
  3. ---
  4. <?xml version="1.0" encoding="UTF-8"?>
  5. <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  6. <title type="text">{{ site.title }}</title>
  7. <generator uri="https://github.com/mojombo/jekyll">Jekyll</generator>
  8. <link rel="self" type="application/atom+xml" href="{{ site.url }}/feed.xml" />
  9. <link rel="alternate" type="text/html" href="{{ site.url }}" />
  10. <updated>{{ site.time | date_to_xmlschema }}</updated>
  11. <id>{{ site.url }}/</id>
  12. <author>
  13. <name>{{ site.owner.name }}</name>
  14. <uri>{{ site.url }}/</uri>
  15. {% if site.owner.email %}<email>{{ site.owner.email }}</email>{% endif %}
  16. </author>
  17. {% for post in site.posts limit:20 %}
  18. <entry>
  19. <title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
  20. <link rel="alternate" type="text/html" href="{% if post.link %}{{ post.link }}{% else %}{{ site.url }}{{ post.url }}{% endif %}" />
  21. <id>{{ site.url }}{{ post.id }}</id>
  22. {% if post.modified %}<updated>{{ post.modified | to_xmlschema }}T00:00:00-00:00</updated>
  23. <published>{{ post.date | date_to_xmlschema }}</published>
  24. {% else %}<published>{{ post.date | date_to_xmlschema }}</published>
  25. <updated>{{ post.date | date_to_xmlschema }}</updated>{% endif %}
  26. <author>
  27. <name>{{ site.owner.name }}</name>
  28. <uri>{{ site.url }}</uri>
  29. <email>{{ site.owner.email }}</email>
  30. </author>
  31. <content type="html">
  32. {{ post.content | xml_escape }}
  33. {% include feed-footer.html %}
  34. </content>
  35. </entry>
  36. {% endfor %}
  37. </feed>