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.

31 lines
1.3 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" xmlns:atom="http://www.w3.org/2005/Atom">
  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. <atom:link href="{{ "/rss.xml" | absolute_url }}" rel="self" type="application/rss+xml" />
  13. <atom:link href="{{ site.feed.path | absolute_url }}" rel="alternate" type="application/atom+xml" />
  14. {% for post in site.posts limit:10 %}
  15. <item>
  16. <title>{{ post.title | xml_escape }}</title>
  17. {% if post.excerpt %}
  18. <description>{{ post.excerpt | strip_html | xml_escape }}</description>
  19. {% else %}
  20. <description>{{ post.content | xml_escape }}</description>
  21. {% endif %}
  22. <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
  23. <link>{{ post.url | absolute_url }}</link>
  24. {% for tag in post.tags %}
  25. <category>{{ tag | xml_escape }}</category>
  26. {% endfor %}
  27. <guid>{{ post.url | absolute_url }}</guid>
  28. </item>
  29. {% endfor %}
  30. </channel>
  31. </rss>

Powered by TurnKey Linux.