feed.xml 970 B

123456789101112131415161718192021222324
  1. ---
  2. layout: null
  3. permalink: /feed.xml
  4. ---
  5. {%- capture newline %}
  6. {% endcapture -%}
  7. <?xml version="1.0" encoding="UTF-8"?>
  8. <feed xmlns="http://www.w3.org/2005/Atom">
  9. <title>{{ site.title }}</title>
  10. <subtitle>{{ site.description }}</subtitle>
  11. <updated>{{ site.time | date_to_rfc822 }}</updated>
  12. <link rel="self" href="{{ page.permalink | xml_escape }}" />
  13. {% for page in site.pages %}{% if page.sitemap %}
  14. <entry>
  15. <title>{{ page.title | xml_escape }}</title>
  16. <link rel="alternate" href="{{ page.permalink | xml_escape }}"{% if page.lang %} hreflang="{{ page.lang }}"{% endif %} />
  17. <id>{{ site.url | xml_escape }}{{ page.url | xml_escape }}</id>
  18. <content>
  19. {{ page.content | strip_html | replace: newline, " " | slice: 0,250 | xml_escape }}... {{ page.url | xml_escape }} {% if page.keywords %}{{ page.keywords | xml_escape }}{% endif %}
  20. </content>
  21. </entry>
  22. {% endif %}{% endfor %}
  23. </feed>