feed.xml 1.3 KB

123456789101112131415161718192021222324252627282930
  1. ---
  2. layout: null
  3. ---
  4. <?xml version="1.0" encoding="UTF-8"?>
  5. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  6. <channel>
  7. <title>{{ site.title | xml_escape }}</title>
  8. <description>{{ site.description | xml_escape }}</description>
  9. <link>{{ site.url }}{{ site.baseurl }}/</link>
  10. <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
  11. <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
  12. <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
  13. <generator>Jekyll v{{ jekyll.version }}</generator>
  14. {% for post in site.posts limit:10 %}
  15. <item>
  16. <title>{{ post.title | xml_escape }}</title>
  17. <description>{{ post.content | xml_escape }}</description>
  18. <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
  19. <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
  20. <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
  21. {% for tag in post.tags %}
  22. <category>{{ tag | xml_escape }}</category>
  23. {% endfor %}
  24. {% for cat in post.categories %}
  25. <category>{{ cat | xml_escape }}</category>
  26. {% endfor %}
  27. </item>
  28. {% endfor %}
  29. </channel>
  30. </rss>