feed.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. sitemap: false
  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/jekyll/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. {% if post.author %}
  19. {% assign author = site.data.authors[post.author] %}
  20. {% else %}
  21. {% assign author = site.owner %}
  22. {% endif %}
  23. <entry>
  24. <title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
  25. <link rel="alternate" type="text/html" href="{{ site.url }}{{ post.url }}" />
  26. <id>{{ site.url }}{{ post.id }}</id>
  27. {% if post.modified %}<updated>{{ post.modified | to_xmlschema }}T00:00:00-00:00</updated>
  28. <published>{{ post.date | date_to_xmlschema }}</published>
  29. {% else %}<published>{{ post.date | date_to_xmlschema }}</published>
  30. <updated>{{ post.date | date_to_xmlschema }}</updated>{% endif %}
  31. <author>
  32. <name>{{ author.name }}</name>
  33. <uri>{{ site.url }}</uri>
  34. {% if author.email %}<email>{{ author.email }}</email>{% endif %}
  35. </author>
  36. <content type="html">
  37. {{ post.content | xml_escape }}
  38. {% include _feed-footer.html %}
  39. </content>
  40. </entry>
  41. {% endfor %}
  42. </feed>