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.

34 lines
1.4 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. {% assign ai_cache = site.data.ai-cache[post.url] %}
  18. {% if ai_cache %}
  19. <description>{{ ai_cache | xml_escape }}</description>
  20. {% elsif post.excerpt %}
  21. <description>{{ post.excerpt | strip_html | xml_escape }}</description>
  22. {% else %}
  23. <description>{{ post.content | xml_escape }}</description>
  24. {% endif %}
  25. <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
  26. <link>{{ post.url | absolute_url }}</link>
  27. {% for tag in post.tags %}
  28. <category>{{ tag | xml_escape }}</category>
  29. {% endfor %}
  30. <guid>{{ post.url | absolute_url }}</guid>
  31. </item>
  32. {% endfor %}
  33. </channel>
  34. </rss>

Powered by TurnKey Linux.