<%-: config.title | cdata %>
<% if (config.subtitle){ %><%-: config.subtitle | cdata %><% } %>
<%= posts.first().updated.toISOString() %>
<%- config.url %>/
<% if (config.author){ %>
<%-: config.author | cdata %>
<% if (config.email){ %><%-: config.email | cdata %><% } %>
<% } %>
Hexo
<% posts.each(function(post){ %>
<%-: post.title | cdata %>
<%- post.permalink %>
<%= post.date.toISOString() %>
<%= post.updated.toISOString() %>
<%-: post.content | cdata %>
<% if (post.description){ %><%-: post.description | cdata %>
<% } else if (post.excerpt){ %><%-: post.excerpt | cdata %>
<% } else {%><%-: post.content.substring(0, 140) | cdata %><% } %>
<% [].concat(post.tags.toArray(), post.categories.toArray()).forEach(function(category){ %>
<% }) %>
<% }) %>