Skip to content

Commit

Permalink
Merge f0947bc into 6ab45ce
Browse files Browse the repository at this point in the history
  • Loading branch information
jlVidal committed Nov 12, 2015
2 parents 6ab45ce + f0947bc commit d0a7531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% if config.subtitle %}<subtitle>{{ config.subtitle | e }}</subtitle>{% endif %}
<link href="{{ feed_url | uriencode }}" rel="self"/>
<link href="{{ url | uriencode }}"/>
<updated>{{ posts.first().updated.toISOString() }}</updated>
<updated>{{ posts.data.length > 0 ? posts.first().updated.toISOString() : '' }}</updated>

This comment has been minimized.

Copy link
@Xuanwo

Xuanwo Nov 18, 2015

How about data.length==0? return a empty string?

<id>{{ url }}</id>
{% if config.author %}
<author>
Expand Down
2 changes: 1 addition & 1 deletion rss2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link>{{ url | uriencode }}</link>
<atom:link href="{{ feed_url | uriencode }}" rel="self" type="application/rss+xml"/>
<description>{{ config.description | e }}</description>
<pubDate>{{ posts.first().updated.toDate().toUTCString() }}</pubDate>
<pubDate>{{ posts.data.length > 0 ? posts.first().updated.toDate().toUTCString() : '' }}</pubDate>
<generator>http://hexo.io/</generator>
{% for post in posts.toArray() %}
<item>
Expand Down

0 comments on commit d0a7531

Please sign in to comment.