mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 23:29:14 +00:00
Updated design of the site as well as added new event
This commit is contained in:
parent
1e33326b03
commit
6b0249f5dc
13 changed files with 433 additions and 47 deletions
|
|
@ -1,21 +1,24 @@
|
|||
<section id="minifeed">
|
||||
<% counter = 3 %>
|
||||
<% page.posts.forEach(function(post) { %>
|
||||
<% if (counter != 0) { %>
|
||||
<% isEvent = false %>
|
||||
<% post.tags.data.forEach(function(tag) { %>
|
||||
<% if (tag.name == "Events") { %>
|
||||
<% isEvent = true %>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
<h1>Blog posts</h1>
|
||||
<div class="minifeed">
|
||||
<% 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_preview',
|
||||
{ post: post,
|
||||
source: "index"
|
||||
}) %>
|
||||
<% counter = counter - 1 %>
|
||||
<% if (isEvent == false) { %>
|
||||
<%- include('post_preview',
|
||||
{ post: post,
|
||||
source: "index"
|
||||
}) %>
|
||||
<% counter = counter - 1 %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% }); %>
|
||||
<% }); %>
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue