{{ config.title }} {{ url }} {% if icon %} {{ icon }} {{ config.title }} {{ url }} {% endif %} {% if config.feed.hub %}{% endif %} {{ config.description }} {% if posts.first().updated %}{{ posts.first().updated.toDate().toUTCString() }}{% else %}{{ posts.first().date.toDate().toUTCString() }}{% endif %} http://hexo.io/ {% for post in posts.toArray() %} {{ post.title }} {{ post.permalink | uriencode }} {{ post.permalink | uriencode }} {{ post.date.toDate().toUTCString() }} {% if post.description %} {{ post.description }} {% elif post.intro %} {{ post.intro }} {% elif post.excerpt %} {{ post.excerpt }} {% 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 %} {{ short_content.substring(0, delim_pos) }} {% else %} {{ short_content }} {% endif %} {% else %} {{ short_content }} {% endif %} {% endif %} {% if post.image %} {% endif %} {% if config.feed.content and post.content %} {% endif %} {% for category in post.categories.toArray() %} {{ category.name }} {% endfor %} {% for tag in post.tags.toArray() %} {{ tag.name }} {% endfor %} {% if post.comments %} {{ post.permalink | uriencode }}#disqus_thread {% endif %} {% endfor %}