openalt_ro/themes/openalt/layout/_partial/index/feed_preview.ejs
2025-11-09 21:24:34 +01:00

22 lines
No EOL
606 B
Text

<section id="feed_preview">
<div class="feed_preview">
<% counter = 3 %>
<% page.posts.forEach(function(post) { %>
<% if (counter != 0) { %>
<% isEvent = false %>
<% post.tags.data.forEach(function(tag) { %>
<% if (tag.name == "Events") { %>
<% isEvent = true %>
<% } %>
<% }); %>
<% if (isEvent == false) { %>
<%- include('./../post_feed', { post: post }) %>
<% counter = counter - 1 %>
<% } %>
<% } %>
<% }); %>
</div>
</section>