Tool Connectors
-
<% var getDate = function(article) { return article.created_at !== article.updated_at ? article.updated_at : article.created_at; } var sortByDate = function(a, b) { return new Date(getDate(b)) - new Date(getDate(a)); } articles = articles.sort(sortByDate).slice(1, maxArticles); %> <% if (articles.length) { %> <% if (heading) { %>
<%= heading %> <% } %>
-
<% articles.forEach(function(article) { %>
-
<% 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; } %> <% var promotedArticlesAbove = '3-bordered' !== 'none' && 'after' === 'before'; %> <% var notificationAbove = 'none' === 'home' && !!'notification_content' && !window.sessionStorage.getItem('alpine:notification:dismissed'); %> <% var blockStyle = 'cards-featured'; %><%= article.title %> <% }) %> <% } %><% var hasFeatured = blockStyle === 'cards-featured' && blocks.length === 3 && numberColumns === 3; %>
-
<% blocks.forEach(function(block, index) { %>
<% var isFeatured = hasFeatured && index === 1; %>
-
<% if (imageHeight) { %>
<% } %> <% if (block.name) { %>
<%= block.name %>
<% } %> <% if (block.description) { %><%= block.description %>
<% } %>
<% }) %>
Can't find what you are looking for?
Submit a requestCategories
Toggle navigation menu
<% if (sections.length) { %>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.forEach(function(section) { %>
- <%= section.name %> <%= partial('partial-section-list-sections', { parent: section, sections: section.sections, partial: partial }) %> <% }); %>
-
-