<% if (articles.length) { %> Promoted articles
<% articles.forEach(function(article) { %>
<% } else { %>
<%= article.title %>
<% }); %>
<%= Util.getExcerpt(article.body, 0) %>
empty
<% } %>Categories
Toggle navigation menu
-
Categories
-
<% sections.forEach(function(section) { %>
-
<%= partial('partial-article-list-sections', {
id: 'section-' + section.id,
parentId: '#' + id,
sections: section.sections,
activeCategoryId: activeCategoryId,
activeSectionId: activeSectionId,
activeArticleId: activeArticleId,
partial: partial
}) %>
<% if (section.articles.length) { %>
-
<% section.articles.forEach(function(article) { %>
- <%= article.title %> <% }); %>
<% }); %>
-
<% sections.slice(0, maxSections).forEach(function(section) { %>
- <%= section.name %> <%= partial('partial-section-list-sections', { parent: section, sections: section.sections, maxSections: maxSections, partial: partial }) %> <% }); %> <% if (sections.length > maxSections) { %>
- See more <% } %>