<% if (articles.length) { %>
<%
articles.sort(function(a,b){
return new Date(b.created_at) - new Date(a.created_at);
});
var resultsCount = 0;
%>
<% articles.forEach(function(article) { %>
<%
var section = sections.filter(function(section) { return section.id === article['section_id']; })[0] || null;
var category = section.category_id;
%>
<% if (section.id !== 8678725951773) { %>
<% if(resultsCount < 6) {%>
<% if(category == '200177446' && !article.promoted) { %>
<% resultsCount++; %>
<% } %>
<% } %>
<% } %>
<% }) %>
<% } %>
<% if (articles.length) { %>
<%
articles.sort(function(a,b){
return new Date(b.created_at) - new Date(a.created_at);
});
var resultsCount = 0;
%>
<% articles.forEach(function(article) { %>
<%
var section = sections.filter(function(section) { return section.id === article['section_id']; })[0] || null;
var category = section.category_id;
%>
<% if (section.id !== 8678725951773 && section.id !== 8685094234653) { %>
<% if(resultsCount < 9) {%>
<% resultsCount++; %>
<% } %>
<% } %>
<% }) %>
<% } %>
<% if (previousArticle || nextArticle) { %>
<% if (previousArticle) { %>
<% } %>
<% if (nextArticle) { %>
<% if (nextTitle) { %>
<%= nextTitle %>
<% } %>
<%= nextArticle.title %>
<% } %>
<% } %>
Kommentarer
0 kommentarer
Logg på hvis du vil legge inn en kommentar.