mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 23:29:14 +00:00
Add the theme
This commit is contained in:
parent
cff7000285
commit
142a478a6a
21 changed files with 663 additions and 1 deletions
13
themes/openalt/layout/_partial/index/main_event.ejs
Normal file
13
themes/openalt/layout/_partial/index/main_event.ejs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<section class="event">
|
||||
|
||||
<% counter = false %>
|
||||
<% page.posts.forEach(function(post) { %>
|
||||
<% post.tags.data.forEach(function(tag) { %>
|
||||
<% if ( (tag.name == "Events") && (counter == false) ) { %>
|
||||
<%- include('./../post_event', { post: post }) %>
|
||||
<% counter = true %>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
<% }); %>
|
||||
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue