Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
{% if post.description %}
{{ post.description }}
{% elif post.excerpt %}
{{ post.excerpt }}
{{ post.excerpt | striptags }}
{% elif post.content %}
{{ post.content.substring(0, 140) }}
{{ post.content | striptags | truncate(140) }}
{% endif %}
</summary>
{% for category in post.categories.toArray() %}
Expand Down
5 changes: 3 additions & 2 deletions rss2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<atom:link href="{{ feed_url | uriencode }}" rel="self" type="application/rss+xml"/>
{% if config.feed.hub %}<atom:link href="{{ config.feed.hub | uriencode }}" rel="hub"/>{% endif %}
<description>{{ config.description }}</description>
{% if config.language %}<language>{{ config.language }}</language>{% endif %}
<pubDate>{{ posts.first().updated.toDate().toUTCString() }}</pubDate>
<generator>http://hexo.io/</generator>
{% for post in posts.toArray() %}
Expand All @@ -20,9 +21,9 @@
{% if post.description %}
{{ post.description }}
{% elif post.excerpt %}
{{ post.excerpt }}
{{ post.excerpt | striptags }}
{% elif post.content %}
{{ post.content.substring(0, 140) }}
{{ post.content | striptags | truncate(140) }}
{% endif %}
</description>
{% if config.feed.content and post.content %}
Expand Down