feed.xml 942 B

123456789101112131415161718192021222324
  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>{{ '' | absolute_url }}</link>
  10. <atom:link href="{{ 'feed.xml' | absolute_url }}" rel="self" type="application/rss+xml" />
  11. {% for post in site.posts limit:20 %}
  12. <item>
  13. <title>{{ post.title | xml_escape }}</title>
  14. <description>
  15. {% if post.subtitle %}{{ post.subtitle | xml_escape }} - {% endif %}
  16. {{ post.content | strip_html | xml_escape | truncatewords: 50 }}
  17. </description>
  18. <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
  19. <link>{{ post.url | absolute_url }}</link>
  20. <guid isPermaLink="true">{{ post.url | absolute_url }}</guid>
  21. </item>
  22. {% endfor %}
  23. </channel>
  24. </rss>