2019-08-12 11:02:22 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-11-17 04:45:26 +00:00
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
2019-08-12 11:02:22 +00:00
|
|
|
<title>{{ config.title }}</title>
|
|
|
|
{% if icon %}<icon>{{ icon }}</icon>{% endif %}
|
|
|
|
{% if config.subtitle %}<subtitle>{{ config.subtitle }}</subtitle>{% endif %}
|
|
|
|
<link href="{{ feed_url | uriencode }}" rel="self"/>
|
|
|
|
{% if config.feed.hub %}<link href="{{ config.feed.hub | uriencode }}" rel="hub"/>{% endif %}
|
2019-10-17 09:28:40 +00:00
|
|
|
<link href="{{ url | uriencode }}"/>
|
2020-07-01 07:23:48 +00:00
|
|
|
<updated>{% if posts.first().updated %}{{ posts.first().updated | formatDate }}{% else %}{{ posts.first().date | formatDate }}{% endif %}</updated>
|
2019-10-17 09:28:40 +00:00
|
|
|
<id>{{ url | uriencode }}</id>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% if config.author %}
|
|
|
|
<author>
|
|
|
|
<name>{{ config.author }}</name>
|
|
|
|
{% if config.email %}<email>{{ config.email }}</email>{% endif %}
|
|
|
|
</author>
|
|
|
|
{% endif %}
|
2019-10-17 09:28:40 +00:00
|
|
|
<generator uri="https://hexo.io/">Hexo</generator>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% for post in posts.toArray() %}
|
|
|
|
<entry>
|
|
|
|
<title>{{ post.title }}</title>
|
2019-10-17 09:28:40 +00:00
|
|
|
<link href="{{ post.permalink }}"/>
|
|
|
|
<id>{{ post.permalink }}</id>
|
2020-07-01 07:23:48 +00:00
|
|
|
<published>{{ post.date | formatDate }}</published>
|
|
|
|
<updated>{% if post.updated %}{{ post.updated | formatDate }}{% else %}{{ post.date | formatDate }}{% endif %}</updated>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% if config.feed.content and post.content %}
|
2019-10-17 09:28:40 +00:00
|
|
|
<content type="html"><![CDATA[{{ post.content | noControlChars | safe }}]]></content>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if post.description %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<summary type="html">{{ post.description }}</summary>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% elif post.intro %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<summary type="html">{{ post.intro }}</summary>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% elif post.excerpt %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<summary type="html">{{ post.excerpt }}</summary>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% elif post.content %}
|
|
|
|
{% set short_content = post.content.substring(0, config.feed.content_limit) %}
|
|
|
|
{% if config.feed.content_limit_delim %}
|
|
|
|
{% set delim_pos = short_content.lastIndexOf(config.feed.content_limit_delim) %}
|
|
|
|
{% if delim_pos > -1 %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<summary type="html">{{ short_content.substring(0, delim_pos) }}</summary>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% else %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<summary type="html">{{ short_content }}</summary>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<summary type="html">{{ short_content }}</summary>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if post.image %}
|
2019-10-17 09:28:40 +00:00
|
|
|
<content src="{{ url + post.image | uriencode }}" type="image" />
|
2019-08-12 11:02:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% for tag in post.tags.toArray() %}
|
2020-01-03 01:30:46 +00:00
|
|
|
<category term="{{ tag.name }}" scheme="{{ url + tag.path | uriencode }}"/>
|
2019-08-12 11:02:22 +00:00
|
|
|
{% endfor %}
|
|
|
|
</entry>
|
|
|
|
{% endfor %}
|
|
|
|
</feed>
|