Skip to main content
Returns and Replacements
<% var getColumnClasses = function(columnNumber) {
var classNames = 'col-12';
if (columnNumber >= 2) classNames += ' md:col-6';
if (columnNumber >= 3) classNames += ' lg:col-4';
if (columnNumber >= 4) classNames += ' xl:col-3';
return classNames;
} %>
Help by topic
<% (categories.length > 1 ? categories : sections).forEach(function(block, index) { %>
-
<% }) %>
}