diff options
author | mayx | 2025-04-28 05:33:18 +0000 |
---|---|---|
committer | mayx | 2025-04-28 05:33:18 +0000 |
commit | d01d9119def9ba4b5991272284b81d6077d018a0 (patch) | |
tree | 23ac8498f37721c610c65150cbebb06bf2e355fb /rss.xml | |
parent | d0ce029b941fc8dc6de9d32cd8942e6dccdbdfc4 (diff) |
Update 4 files
- /feed.json - /_layouts/default.html - /rss.xml - /feed.xslt.xml
Diffstat (limited to 'rss.xml')
-rw-r--r-- | rss.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/rss.xml b/rss.xml new file mode 100644 index 0000000..2af6378 --- /dev/null +++ b/rss.xml @@ -0,0 +1,29 @@ +--- +--- +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet type="text/xml" href="/feed.xslt.xml"?> +<rss version="2.0"> + <channel> + <title>{{ site.name | xml_escape }}</title> + <description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description> + <link>{{ site.url }}</link> + <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> + <language>{{ site.lang | default: "zh-CN" }}</language> + {% for post in site.posts limit:10 %} + <item> + <title>{{ post.title | xml_escape }}</title> + {% if post.excerpt %} + <description>{{ post.excerpt | xml_escape }}</description> + {% else %} + <description>{{ post.content | xml_escape }}</description> + {% endif %} + <pubDate>{{ post.date | date_to_rfc822 }}</pubDate> + <link>{{ post.url | absolute_url }}</link> + {% for tag in post.tags %} + <category>{{ tag | xml_escape }}</category> + {% endfor %} + <guid>{{ post.url | absolute_url }}</guid> + </item> + {% endfor %} + </channel> +</rss> \ No newline at end of file |