<% if (!url) { %>
<%- typeof I18n !== 'undefined' ? I18n.t('rss.configure_feed') : 'RSS Feed' %>
<%- typeof I18n !== 'undefined' ? I18n.t('rss.configure_feed_desc') : 'Add an RSS URL in the settings panel to display your feed here.' %>
<% if (style === 'modern') { %>
<% } else { %>
<% } %>
<% } else if (loading) { %>

<%- typeof I18n !== 'undefined' ? I18n.t('rss.loading') : 'Loading feed...' %>

<% } else if (error) { %>

<%- error %>

<%- typeof I18n !== 'undefined' ? I18n.t('rss.network_error') : 'Please check the URL and try again.' %>

<% } else if (items && items.length > 0) { %> <% if (style === 'modern') { %> <% items.forEach(function(item, index) { %>
<% if (show_image && item.image) { %>
<% } %>
<% if (show_title) { %> <% if (show_link && item.link) { %>

<%- item.title %>

<% } else { %>

<%- item.title %>

<% } %> <% } %> <% if (show_desc && item.description) { %>

<%- truncate(item.description, content_length) %>

<% } %>
<% if (show_date && item.pubDate) { %> <%- item.pubDate %> <% } %> <% if (show_author && item.author) { %> <%- typeof I18n !== 'undefined' ? I18n.t('rss.by') : 'by' %> <%- item.author %> <% } %>
<% if (show_link && item.link && !show_title) { %> <%- typeof I18n !== 'undefined' ? I18n.t('rss.read_more') : 'Read more' %> → <% } %>
<% }); %> <% } else { %> <% items.forEach(function(item, index) { %>
<% if (show_image && item.image) { %> <% } %>
<% if (show_title) { %> <% if (show_link && item.link) { %> <%- item.title %> <% } else { %>
<%- item.title %>
<% } %> <% } %> <% if (show_desc && item.description) { %>

<%- truncate(item.description, content_length) %>

<% } %>
<% if (show_date && item.pubDate) { %> <%- item.pubDate %> <% } %> <% if (show_author && item.author) { %> <% if (show_date && item.pubDate) { %> · <% } %> <%- item.author %> <% } %>
<% }); %> <% } %> <% } else { %>

<%- typeof I18n !== 'undefined' ? I18n.t('rss.no_items') : 'No items found in this feed.' %>

<% } %>