Mayx's Home Page https://mabbs.github.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1 KiB

  1. ---
  2. ---
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <?xml-stylesheet type="text/xml" href="/feed.xslt.xml"?>
  5. <rss version="2.0">
  6. <channel>
  7. <title>{{ site.title | xml_escape }}</title>
  8. <description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
  9. <link>"{{ "/" | absolute_url }}"</link>
  10. <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
  11. <language>{{ site.lang | default: "zh-CN" }}</language>
  12. {% for post in site.posts limit:10 %}
  13. <item>
  14. <title>{{ post.title | xml_escape }}</title>
  15. {% if post.excerpt %}
  16. <description>{{ post.excerpt | strip_html | xml_escape }}</description>
  17. {% else %}
  18. <description>{{ post.content | xml_escape }}</description>
  19. {% endif %}
  20. <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
  21. <link>{{ post.url | absolute_url }}</link>
  22. {% for tag in post.tags %}
  23. <category>{{ tag | xml_escape }}</category>
  24. {% endfor %}
  25. <guid>{{ post.url | absolute_url }}</guid>
  26. </item>
  27. {% endfor %}
  28. </channel>
  29. </rss>

Powered by TurnKey Linux.