Skip to main content
<% if (sections.length) { %>
<% 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) { %>
<% } %>
<% }); %>
<% } %>
<% var getColumnClasses = function(numberColumns) {
var classNames = 'col-12';
if (numberColumns >= 2) classNames += ' md:col-6';
if (numberColumns >= 3) classNames += ' lg:col-4';
if (numberColumns >= 4) classNames += ' xl:col-3';
return classNames;
} %>
Other resources
<% blocks.forEach(function(block, index) { %>
-
<% }) %>