Updated design of the site as well as added new event

This commit is contained in:
Bashy 2026-02-10 17:35:59 +01:00
parent 1e33326b03
commit 6b0249f5dc
13 changed files with 433 additions and 47 deletions

View file

@ -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>