Add the theme

This commit is contained in:
Bashy 2025-11-09 21:24:34 +01:00
parent cff7000285
commit 142a478a6a
21 changed files with 663 additions and 1 deletions

View file

@ -0,0 +1,22 @@
<section id="feed_preview">
<div class="feed_preview">
<% 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_feed', { post: post }) %>
<% counter = counter - 1 %>
<% } %>
<% } %>
<% }); %>
</div>
</section>

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

View file

@ -0,0 +1,18 @@
<section id="partners">
<div class="section-title">
<h1>Brought to you by:</h1>
</div>
<div class="partners">
<ul class="partners">
<% site.data.partners.forEach(function(partner) { %>
<li>
<a href="<%= partner.url %>">
<img src="<%= partner.logo %>" alt="<%= partner.name %>">
</a>
</li>
<% }); %>
</ul>
</div>
</section>