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,3 +1,12 @@
<%
isEvent = false
page.tags.data.forEach(function(tag) {
if ( (tag.name == "Events") && (!isEvent) ) {
isEvent = true
}
});
%>
<div class="post-page post">
<% if(page.photos && page.photos.length) { %>
<div class="post-cover">
@ -6,6 +15,10 @@
<% } %>
<div class="post-text-wrapper">
<% if(isEvent) { %>
<div class="post-event">
<%- include('_partial/event') %>
<% } else { %>
<div class="post-text">
<div class="post-header">
<h1 class="article"><%= page.title || "Untitled" %></h1>
@ -24,6 +37,8 @@
<% } else {console.log(page)} %>
</div>
</div>
<% } %>
</div>
</div>
</div>