diff --git a/atom.xml b/atom.xml index 73c19ec..b3f43ad 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ {% if config.subtitle %}{{ config.subtitle | e }}{% endif %} - {{ posts.first().updated.toISOString() }} + {{ posts.data.length > 0 ? posts.first().updated.toISOString() : '' }} {{ url }} {% if config.author %} diff --git a/rss2.xml b/rss2.xml index 9698c5f..dc14c8f 100644 --- a/rss2.xml +++ b/rss2.xml @@ -7,7 +7,7 @@ {{ url | uriencode }} {{ config.description | e }} - {{ posts.first().updated.toDate().toUTCString() }} + {{ posts.data.length > 0 ? posts.first().updated.toDate().toUTCString() : '' }} http://hexo.io/ {% for post in posts.toArray() %}