mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-12-20 03:15:35 +01:00
Update 3 files
- /feed.xslt.xml - /rss.xml - /feed.json
This commit is contained in:
parent
d01d9119de
commit
29c6d57faa
3 changed files with 62 additions and 112 deletions
6
rss.xml
6
rss.xml
|
|
@ -4,16 +4,16 @@
|
|||
<?xml-stylesheet type="text/xml" href="/feed.xslt.xml"?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{{ site.name | xml_escape }}</title>
|
||||
<title>{{ site.title | xml_escape }}</title>
|
||||
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
||||
<link>{{ site.url }}</link>
|
||||
<link>"{{ "/" | absolute_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>
|
||||
<description>{{ post.excerpt | strip_html | xml_escape }}</description>
|
||||
{% else %}
|
||||
<description>{{ post.content | xml_escape }}</description>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue