atom.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. layout: null
  3. title : Atom Feed
  4. ---
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <feed xmlns="http://www.w3.org/2005/Atom">
  7. <title type="text" xml:lang="en">
  8. {{ site.title | xml_escape }}
  9. </title>
  10. <link type="application/atom+xml" href="{{ site.baseurl | prepend: site.url }}/atom.xml" rel="self"/>
  11. <link href="{{ site.baseurl | prepend: site.url }}/"/>
  12. <updated>{{ site.time | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
  13. <id>{{ site.baseurl | prepend: site.url }}/</id>
  14. <author>
  15. <name>
  16. {{ site.author.name }}
  17. </name>
  18. <uri>{{ site.author.website }}</uri>
  19. </author>
  20. <rights>
  21. Copyright © {{ site.time | date: "%Y" }} {{ site.author.name }}. {{ site.data.sites.licenses.by-sa-alt }}
  22. </rights>
  23. {% for post in site.posts limit:10 %}
  24. <entry>
  25. <title>
  26. {{ post.title | xml_escape }}
  27. </title>
  28. <link rel="alternate"
  29. type="text/html"
  30. href="{{ site.baseurl | prepend: site.url }}{{ post.url }}" />
  31. <author>
  32. {% if post.author %}
  33. {% assign author = page.author %}
  34. {% else %}
  35. {% assign author = site.author.name %}
  36. {% endif %}
  37. <name>
  38. {{ author }}
  39. </name>
  40. <uri>{% if post.author_site %}{{ post.author_site }}{% else %}{{ site.author.website }}{% endif %}</uri>
  41. </author>
  42. <summary>
  43. {{ post.description | xml_escape }}
  44. </summary>
  45. <content type="html">
  46. {{ post.content | markdownify | xml_escape }}>
  47. </content>
  48. <rights>
  49. Copyright © {{ site.time | date: "%Y" }} {{ author }}. {{ site.data.sites.licenses.by-sa-alt }}
  50. </rights>
  51. <published>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</published>
  52. <updated>{{ post.date | date_to_xmlschema }}</updated>
  53. <id>{{ site.baseurl | prepend: site.url }}{{ post.id }}</id>
  54. </entry>
  55. {% endfor %}
  56. </feed>