mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 15:19:15 +00:00
Cleanup of the code
This commit is contained in:
parent
6074b9c152
commit
4f65db4bce
13 changed files with 120 additions and 146 deletions
11
themes/openalt/layout/_partial/index_event.ejs
Normal file
11
themes/openalt/layout/_partial/index_event.ejs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue