openalt_ro/themes/openalt/layout/_partial/index_event.ejs
2025-11-21 09:09:26 +01:00

11 lines
No EOL
415 B
Text

<section class="event">
<% counter = 2 %>
<% page.posts.forEach(function(post) { %>
<% post.tags.data.forEach(function(tag) { %>
<% if ( (tag.name == "Events") && (counter != 0) ) { %>
<%- include('post_preview', { post: post, source: "index", event: counter }) %>
<% counter = counter - 1 %>
<% } %>
<% }); %>
<% }); %>
</section>